当前位置:网站首页>Jeecgboot learning_ Online form first experience
Jeecgboot learning_ Online form first experience
2022-06-11 03:21:00 【The bright moon is always fresh】
JeecgBoot Study Online Form initial experience
Change it in these places 
Select the type in the page properties 
Create another item table 
In order to make the selection have a tree structure We modify these two places


remarks :
1、 Dictionaries table Fill in the table name corresponding to the tree control { for example :sys_category }
2、 Dictionaries code Fill in the parent of the root node of the tree control ID Value , Blank if not filled
3、 Dictionaries text Fill in 4 Names of table fields , Separated by commas , In turn, is :ID Column , Father ID Column , Show Columns , Whether there are child node Columns { for example :id,pid,name,has_child}
Explanation of field order :
a. ID Column sum PID Columns are used to record the parent-child relationship of data , And ID The column is the value that the tree control finally saves to the database
b. Display the data displayed by the list tree control ,
c. Whether any child node column is a special case column required by the tree table , See in detail online Form tree form development , This column is the string type system default 1 be for the purpose of 0 Why not , Other data formats are not supported .
One to many form configuration

This is a single table A schedule is under construction
Uncheck not to display on the page 


An order customer table is under construction 
The operation is basically the same
The form default values and value filling rules use
Add the control default value expression in the main table
Then configure in the system coding rules 
org.jeecg.modules.online.cgform.rule.OrderNumberRule
The corresponding is

/** * Rules for filling in values Demo: Generate order number * 【 Test examples 】 */
public class OrderNumberRule implements IFillRuleHandler {
@Override
public Object execute(JSONObject params, JSONObject formData) {
String prefix = "CN";
// The order prefix defaults to CN If the rule parameter is not empty , Then take the custom prefix
if (params != null) {
Object obj = params.get("prefix");
if (obj != null) prefix = obj.toString();
}
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
int random = RandomUtils.nextInt(90) + 10;
String value = prefix + format.format(new Date()) + random;
// according to formData Different values of , Generate different order numbers
String name = formData.getString("name");
if (!StringUtils.isEmpty(name)) {
value += name;
}
return value;
}
}
online Table list sub table js Enhanced writing
Dynamic enhanced summation 
According to rules Write
onlChange(){
return {
ruz_date(){
let value = event.value
//alert(' Trigger control ',value)
// According to the date of entry , Automatically calculate the number of years of employment
if(value!=null && value!=""){
let currDate = new Date(value.replace(/-/g, "\/"));
let d = new Date();
let ru_year_num = d.getFullYear()-currDate.getFullYear()
let values = {
'ru_year_num':ru_year_num + 1}
that.triggleChangeValues(values)
}
}
}
}
Section 5 JeecgBoot # Online Form customization buttons and JS enhance &Popup Control &Online report form
For other applications, just look at the documentation
边栏推荐
- [safety science popularization] mining technology starts from the love story of a man of science and Engineering
- . Net module and assembly - NET Module vs Assembly
- VMware虚拟机IP,网关设置。虚拟机ping不通外网
- 通过程序启动QQ,实现自动登录.
- 一文搞懂单片机驱动8080LCD
- Configuring the command line compiled environment -msvc
- Stringutils string tool class used by FreeMarker to create templates
- 删除CSDN上传图片的水印
- Hqchart actual combat tutorial 55 area map of K line of ouyi.com
- postgresql源码学习(十七)—— MVCC②-快照与隔离级别简介
猜你喜欢

. Net module and assembly - NET Module vs Assembly

Question bank and answers for 2022 melting welding and thermal cutting operation certificate examination

單片機通信數據延遲問題排查

超算Disk quota exceed

一文搞懂单片机驱动8080LCD

名不副实的雅迪高端品牌VFLY,为何“不高端”?

Helm deploy traifik ingress

sonarqube平台基础使用

突破中国品牌创新技术实力,TCL做对了什么?

Android P SoftAP start process
随机推荐
單片機通信數據延遲問題排查
Demand and Prospect of 3D GIS Industry
Hqchart actual combat tutorial 55 area map of K line of ouyi.com
深入解析问号表达式
[safety science popularization] have you been accepted by social workers today?
多值映射:ArrayListMultimap和HashMultimap
PIP installation Qt5.
postgresql源码学习(21)—— 故障恢复②-事务日志初始化
Disk quota exceeded
【安全科普】挖矿技术,从一个理工男的爱情故事讲起
Cygwin reports an error child_ info_ fork::abort: XXX. dll: Loaded to different address: parent(XXX) != child(XXX)
三维GIS行业需求及展望
LVGL中文字体制作
HQChart钉钉小程序教程1-创建K线图
ORA-00392 ORA-00312 错误处理
SQL | 游戏行业部分指标
File file = new file ("test.txt") file path
一文搞懂单片机驱动8080LCD
ASLR
pip 安装 qt5 。