parent
64b29f47e0
commit
b0c4194602
File diff suppressed because one or more lines are too long
@ -0,0 +1,33 @@
|
|||||||
|
package org.jeecg.config;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 短信模板
|
||||||
|
*
|
||||||
|
* @author: wangshuai
|
||||||
|
* @date: 2024/11/5 下午3:44
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Component("jeecgSmsTemplateConfig")
|
||||||
|
@ConfigurationProperties(prefix = "jeecg.oss.sms-template")
|
||||||
|
public class JeecgSmsTemplateConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 短信签名
|
||||||
|
*/
|
||||||
|
private String signature;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 短信模板code
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private Map<String,String> templateCode;
|
||||||
|
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,370 @@
|
|||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"key": "1717072932495_439966",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"isContainer": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"type": "input",
|
||||||
|
"name": "名称",
|
||||||
|
"className": "form-input",
|
||||||
|
"icon": "icon-input",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"width": "100%",
|
||||||
|
"defaultValue": "",
|
||||||
|
"required": true,
|
||||||
|
"dataType": null,
|
||||||
|
"pattern": "",
|
||||||
|
"placeholder": "",
|
||||||
|
"clearable": false,
|
||||||
|
"readonly": false,
|
||||||
|
"disabled": false,
|
||||||
|
"fillRuleCode": "",
|
||||||
|
"showPassword": false,
|
||||||
|
"unique": false,
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteAPI": {
|
||||||
|
"url": "",
|
||||||
|
"executed": false
|
||||||
|
},
|
||||||
|
"key": "1717072932495_556479",
|
||||||
|
"model": "input_1717072932495_556479",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"required": true,
|
||||||
|
"message": "${title}必须填写"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isSubItem": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "number",
|
||||||
|
"name": "数字",
|
||||||
|
"className": "form-number",
|
||||||
|
"icon": "icon-number",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"width": "",
|
||||||
|
"required": false,
|
||||||
|
"defaultValue": 0,
|
||||||
|
"placeholder": "",
|
||||||
|
"controls": false,
|
||||||
|
"min": 0,
|
||||||
|
"minUnlimited": true,
|
||||||
|
"max": 100,
|
||||||
|
"maxUnlimited": true,
|
||||||
|
"step": 1,
|
||||||
|
"disabled": false,
|
||||||
|
"controlsPosition": "right",
|
||||||
|
"unitText": "",
|
||||||
|
"unitPosition": "suffix",
|
||||||
|
"showPercent": false,
|
||||||
|
"align": "left",
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "number",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteAPI": {
|
||||||
|
"url": "",
|
||||||
|
"executed": false
|
||||||
|
},
|
||||||
|
"key": "1717072985868_606195",
|
||||||
|
"model": "number_1717072985868_606195",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [],
|
||||||
|
"isSubItem": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"required": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"hidden": false,
|
||||||
|
"fieldNote": ""
|
||||||
|
},
|
||||||
|
"model": "card_1717072932495_439966",
|
||||||
|
"hideTitle": false,
|
||||||
|
"modelType": "main"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "1717072988159_545097",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"isContainer": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"type": "money",
|
||||||
|
"name": "金额",
|
||||||
|
"className": "form-money",
|
||||||
|
"icon": "icon-money",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"width": "180px",
|
||||||
|
"placeholder": "请输入金额",
|
||||||
|
"required": false,
|
||||||
|
"unitText": "元",
|
||||||
|
"unitPosition": "suffix",
|
||||||
|
"precision": 2,
|
||||||
|
"hidden": false,
|
||||||
|
"disabled": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "number",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteAPI": {
|
||||||
|
"url": "",
|
||||||
|
"executed": false
|
||||||
|
},
|
||||||
|
"key": "1717072988159_568693",
|
||||||
|
"model": "money_1717072988159_568693",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [],
|
||||||
|
"isSubItem": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "select",
|
||||||
|
"name": "下拉选择框",
|
||||||
|
"className": "form-select",
|
||||||
|
"icon": "icon-select",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"defaultValue": "",
|
||||||
|
"multiple": false,
|
||||||
|
"disabled": false,
|
||||||
|
"clearable": true,
|
||||||
|
"placeholder": "",
|
||||||
|
"required": false,
|
||||||
|
"showLabel": false,
|
||||||
|
"showType": "default",
|
||||||
|
"width": "",
|
||||||
|
"useColor": false,
|
||||||
|
"colorIteratorIndex": 3,
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"value": "下拉框1",
|
||||||
|
"itemColor": "#2196F3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "下拉框2",
|
||||||
|
"itemColor": "#08C9C9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "下拉框3",
|
||||||
|
"itemColor": "#00C345"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"remote": false,
|
||||||
|
"filterable": false,
|
||||||
|
"remoteOptions": [],
|
||||||
|
"props": {
|
||||||
|
"value": "value",
|
||||||
|
"label": "label"
|
||||||
|
},
|
||||||
|
"remoteFunc": "",
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": ",",
|
||||||
|
"customConfig": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteAPI": {
|
||||||
|
"url": "",
|
||||||
|
"executed": false
|
||||||
|
},
|
||||||
|
"key": "1717072991431_622198",
|
||||||
|
"model": "select_1717072991431_622198",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [],
|
||||||
|
"isSubItem": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"required": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"hidden": false,
|
||||||
|
"fieldNote": ""
|
||||||
|
},
|
||||||
|
"model": "card_1717072988159_545097",
|
||||||
|
"hideTitle": false,
|
||||||
|
"modelType": "main"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "1717072932495_382575",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"isContainer": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"type": "imgupload",
|
||||||
|
"name": "图片上传",
|
||||||
|
"className": "form-tupian",
|
||||||
|
"icon": "icon-tupian",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"defaultValue": [],
|
||||||
|
"size": {
|
||||||
|
"width": 100,
|
||||||
|
"height": 100
|
||||||
|
},
|
||||||
|
"width": "",
|
||||||
|
"tokenFunc": "funcGetToken",
|
||||||
|
"token": "",
|
||||||
|
"domain": "http://img.h5huodong.com",
|
||||||
|
"disabled": false,
|
||||||
|
"length": 9,
|
||||||
|
"multiple": true,
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"required": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"key": "1717072996509_795340",
|
||||||
|
"model": "imgupload_1717072996509_795340",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [],
|
||||||
|
"isSubItem": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "file-upload",
|
||||||
|
"name": "附件",
|
||||||
|
"className": "form-file-upload",
|
||||||
|
"icon": "icon-shangchuan",
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"defaultValue": [],
|
||||||
|
"token": "",
|
||||||
|
"length": 1,
|
||||||
|
"drag": false,
|
||||||
|
"multiple": false,
|
||||||
|
"disabled": false,
|
||||||
|
"buttonText": "添加附件",
|
||||||
|
"tokenFunc": "funcGetToken",
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"required": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"autoWidth": 50
|
||||||
|
},
|
||||||
|
"key": "1717072932495_669325",
|
||||||
|
"model": "file_upload_1717072932495_669325",
|
||||||
|
"modelType": "main",
|
||||||
|
"rules": [],
|
||||||
|
"isSubItem": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"options": {
|
||||||
|
"required": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"hidden": false,
|
||||||
|
"fieldNote": ""
|
||||||
|
},
|
||||||
|
"model": "card_1717072932495_382575",
|
||||||
|
"hideTitle": false,
|
||||||
|
"modelType": "main"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"config": {
|
||||||
|
"titleField": "input_1717072932495_556479",
|
||||||
|
"showHeaderTitle": true,
|
||||||
|
"labelWidth": 100,
|
||||||
|
"labelPosition": "top",
|
||||||
|
"size": "small",
|
||||||
|
"dialogOptions": {
|
||||||
|
"top": 20,
|
||||||
|
"width": 1000,
|
||||||
|
"padding": {
|
||||||
|
"top": 25,
|
||||||
|
"right": 25,
|
||||||
|
"bottom": 30,
|
||||||
|
"left": 25
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disabledAutoGrid": false,
|
||||||
|
"designMobileView": false,
|
||||||
|
"enableComment": true,
|
||||||
|
"hasWidgets": [
|
||||||
|
"input",
|
||||||
|
"number",
|
||||||
|
"card",
|
||||||
|
"money",
|
||||||
|
"select",
|
||||||
|
"imgupload",
|
||||||
|
"file-upload"
|
||||||
|
],
|
||||||
|
"expand": {
|
||||||
|
"js": "",
|
||||||
|
"css": "",
|
||||||
|
"url": {
|
||||||
|
"js": "",
|
||||||
|
"css": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"transactional": true,
|
||||||
|
"customRequestURL": [
|
||||||
|
{
|
||||||
|
"url": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"allowExternalLink": false,
|
||||||
|
"externalLinkShowData": false,
|
||||||
|
"headerImgUrl": "",
|
||||||
|
"externalTitle": "",
|
||||||
|
"enableNotice": false,
|
||||||
|
"noticeMode": "external",
|
||||||
|
"noticeType": "system",
|
||||||
|
"noticeReceiver": "",
|
||||||
|
"allowPrint": false,
|
||||||
|
"allowJmReport": false,
|
||||||
|
"jmReportURL": "",
|
||||||
|
"bizRuleConfig": [],
|
||||||
|
"bigDataMode": false
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,496 @@
|
|||||||
|
{
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
"isContainer": true,
|
||||||
|
"model": "card_1717072902303_783177",
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"executed": false,
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"icon": "icon-input",
|
||||||
|
"className": "form-input",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"required": true,
|
||||||
|
"message": "${title}必须填写"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "input",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "名称",
|
||||||
|
"options": {
|
||||||
|
"clearable": false,
|
||||||
|
"hidden": false,
|
||||||
|
"defaultValue": "",
|
||||||
|
"pattern": "",
|
||||||
|
"fillRuleCode": "",
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": true,
|
||||||
|
"readonly": false,
|
||||||
|
"unique": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "100%",
|
||||||
|
"autoWidth": 100,
|
||||||
|
"showPassword": false,
|
||||||
|
"disabled": false,
|
||||||
|
"placeholder": ""
|
||||||
|
},
|
||||||
|
"model": "input_1717072902303_477529",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717072902303_477529"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"key": "1717072902303_783177"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"options": {
|
||||||
|
"required": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"hidden": false,
|
||||||
|
"fieldNote": ""
|
||||||
|
},
|
||||||
|
"isContainer": true,
|
||||||
|
"model": "card_1717073019436_526262",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"executed": false,
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"icon": "icon-number",
|
||||||
|
"className": "form-number",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "number",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "数字",
|
||||||
|
"options": {
|
||||||
|
"controls": false,
|
||||||
|
"showPercent": false,
|
||||||
|
"hidden": false,
|
||||||
|
"max": 100,
|
||||||
|
"defaultValue": 0,
|
||||||
|
"unitPosition": "suffix",
|
||||||
|
"fieldNote": "",
|
||||||
|
"maxUnlimited": true,
|
||||||
|
"align": "left",
|
||||||
|
"required": false,
|
||||||
|
"min": 0,
|
||||||
|
"minUnlimited": true,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "",
|
||||||
|
"autoWidth": 50,
|
||||||
|
"step": 1,
|
||||||
|
"disabled": false,
|
||||||
|
"placeholder": "",
|
||||||
|
"controlsPosition": "right",
|
||||||
|
"unitText": ""
|
||||||
|
},
|
||||||
|
"model": "number_1717073019436_586474",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "number",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717073019436_586474"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"executed": false,
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"icon": "icon-money",
|
||||||
|
"className": "form-money",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "money",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "金额",
|
||||||
|
"options": {
|
||||||
|
"hidden": false,
|
||||||
|
"precision": 2,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "180px",
|
||||||
|
"autoWidth": 50,
|
||||||
|
"unitPosition": "suffix",
|
||||||
|
"disabled": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"placeholder": "请输入金额",
|
||||||
|
"required": false,
|
||||||
|
"unitText": "元"
|
||||||
|
},
|
||||||
|
"model": "money_1717073021100_526660",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "number",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717073021100_526660"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"key": "1717073019436_526262",
|
||||||
|
"hideTitle": false,
|
||||||
|
"modelType": "main"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
"isContainer": true,
|
||||||
|
"model": "card_1717072902303_118977",
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"executed": false,
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"icon": "icon-select",
|
||||||
|
"className": "form-select",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "select",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "下拉选择框",
|
||||||
|
"options": {
|
||||||
|
"remoteFunc": "",
|
||||||
|
"filterable": false,
|
||||||
|
"clearable": true,
|
||||||
|
"hidden": false,
|
||||||
|
"defaultValue": "",
|
||||||
|
"remoteOptions": [],
|
||||||
|
"multiple": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"remote": false,
|
||||||
|
"required": false,
|
||||||
|
"showLabel": false,
|
||||||
|
"useColor": false,
|
||||||
|
"props": {
|
||||||
|
"label": "label",
|
||||||
|
"value": "value"
|
||||||
|
},
|
||||||
|
"colorIteratorIndex": 3,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"itemColor": "#2196F3",
|
||||||
|
"value": "下拉框1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"itemColor": "#08C9C9",
|
||||||
|
"value": "下拉框2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"itemColor": "#00C345",
|
||||||
|
"value": "下拉框3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"autoWidth": 50,
|
||||||
|
"showType": "default",
|
||||||
|
"disabled": false,
|
||||||
|
"placeholder": ""
|
||||||
|
},
|
||||||
|
"model": "select_1717073033259_273399",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": ",",
|
||||||
|
"customConfig": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717073033259_273399"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"executed": false,
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"icon": "icon-textarea",
|
||||||
|
"className": "form-textarea",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "textarea",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "描述",
|
||||||
|
"options": {
|
||||||
|
"readonly": false,
|
||||||
|
"hidden": false,
|
||||||
|
"defaultValue": "",
|
||||||
|
"unique": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "100%",
|
||||||
|
"pattern": "",
|
||||||
|
"autoWidth": 50,
|
||||||
|
"disabled": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"placeholder": "",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
"model": "textarea_1717072902303_129466",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717072902303_129466"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"key": "1717072902303_118977"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hideTitle": false,
|
||||||
|
"options": {
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
"isContainer": true,
|
||||||
|
"model": "card_1717072902304_736053",
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "card",
|
||||||
|
"isAutoGrid": true,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"hideTitle": false,
|
||||||
|
"isSubItem": false,
|
||||||
|
"name": "图片上传",
|
||||||
|
"icon": "icon-tupian",
|
||||||
|
"options": {
|
||||||
|
"hidden": false,
|
||||||
|
"defaultValue": [],
|
||||||
|
"length": 9,
|
||||||
|
"multiple": true,
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": false,
|
||||||
|
"token": "",
|
||||||
|
"size": {
|
||||||
|
"width": 100,
|
||||||
|
"height": 100
|
||||||
|
},
|
||||||
|
"tokenFunc": "funcGetToken",
|
||||||
|
"domain": "http://img.h5huodong.com",
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"width": "",
|
||||||
|
"autoWidth": 50,
|
||||||
|
"disabled": false
|
||||||
|
},
|
||||||
|
"className": "form-tupian",
|
||||||
|
"model": "imgupload_1717073025137_563739",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "imgupload",
|
||||||
|
"key": "1717073025137_563739"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hideTitle": false,
|
||||||
|
"isSubItem": false,
|
||||||
|
"name": "附件",
|
||||||
|
"icon": "icon-shangchuan",
|
||||||
|
"options": {
|
||||||
|
"buttonText": "添加附件",
|
||||||
|
"hidden": false,
|
||||||
|
"defaultValue": [],
|
||||||
|
"length": 1,
|
||||||
|
"multiple": false,
|
||||||
|
"fieldNote": "",
|
||||||
|
"required": false,
|
||||||
|
"token": "",
|
||||||
|
"tokenFunc": "funcGetToken",
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"autoWidth": 50,
|
||||||
|
"disabled": false,
|
||||||
|
"drag": false
|
||||||
|
},
|
||||||
|
"className": "form-file-upload",
|
||||||
|
"model": "file_upload_1717072902304_442777",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "file-upload",
|
||||||
|
"key": "1717072902304_442777"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"key": "1717072902304_736053"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"isSubItem": false,
|
||||||
|
"remoteAPI": {
|
||||||
|
"url": "",
|
||||||
|
"executed": false
|
||||||
|
},
|
||||||
|
"icon": "icon-link",
|
||||||
|
"className": "form-link-record",
|
||||||
|
"rules": [],
|
||||||
|
"modelType": "main",
|
||||||
|
"type": "link-record",
|
||||||
|
"hideTitle": false,
|
||||||
|
"name": "主表@表单控件",
|
||||||
|
"options": {
|
||||||
|
"sourceCode": "ai_control_main",
|
||||||
|
"showMode": "single",
|
||||||
|
"showType": "card",
|
||||||
|
"titleField": "wen_ben",
|
||||||
|
"showFields": [],
|
||||||
|
"allowView": true,
|
||||||
|
"allowEdit": true,
|
||||||
|
"allowAdd": true,
|
||||||
|
"allowSelect": true,
|
||||||
|
"buttonText": "添加记录",
|
||||||
|
"twoWayModel": "sub_table_design_1717137038626_791984",
|
||||||
|
"dataSelectAuth": "all",
|
||||||
|
"filters": [
|
||||||
|
{
|
||||||
|
"matchType": "AND",
|
||||||
|
"rules": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"search": {
|
||||||
|
"enabled": false,
|
||||||
|
"field": "",
|
||||||
|
"rule": "like",
|
||||||
|
"afterShow": false,
|
||||||
|
"fields": []
|
||||||
|
},
|
||||||
|
"createMode": {
|
||||||
|
"add": true,
|
||||||
|
"select": false,
|
||||||
|
"params": {
|
||||||
|
"selectLinkModel": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"width": "100%",
|
||||||
|
"defaultValue": "",
|
||||||
|
"defaultValType": "none",
|
||||||
|
"required": false,
|
||||||
|
"disabled": false,
|
||||||
|
"hidden": false,
|
||||||
|
"hiddenOnAdd": false,
|
||||||
|
"fieldNote": ""
|
||||||
|
},
|
||||||
|
"model": "link_record_1717137044235_306956",
|
||||||
|
"advancedSetting": {
|
||||||
|
"defaultValue": {
|
||||||
|
"type": "compose",
|
||||||
|
"value": "",
|
||||||
|
"format": "string",
|
||||||
|
"allowFunc": true,
|
||||||
|
"valueSplit": "",
|
||||||
|
"customConfig": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"key": "1717137044235_306956"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"config": {
|
||||||
|
"jmReportURL": "",
|
||||||
|
"enableComment": true,
|
||||||
|
"dialogOptions": {
|
||||||
|
"padding": {
|
||||||
|
"top": 25,
|
||||||
|
"left": 25,
|
||||||
|
"bottom": 30,
|
||||||
|
"right": 25
|
||||||
|
},
|
||||||
|
"top": 20,
|
||||||
|
"width": 1000
|
||||||
|
},
|
||||||
|
"allowJmReport": false,
|
||||||
|
"labelWidth": 100,
|
||||||
|
"headerImgUrl": "",
|
||||||
|
"noticeMode": "external",
|
||||||
|
"noticeReceiver": "",
|
||||||
|
"designMobileView": false,
|
||||||
|
"labelPosition": "top",
|
||||||
|
"allowPrint": false,
|
||||||
|
"enableNotice": false,
|
||||||
|
"bizRuleConfig": [],
|
||||||
|
"showHeaderTitle": true,
|
||||||
|
"bigDataMode": false,
|
||||||
|
"titleField": "input_1717072902303_477529",
|
||||||
|
"externalTitle": "",
|
||||||
|
"noticeType": "system",
|
||||||
|
"customRequestURL": [
|
||||||
|
{
|
||||||
|
"url": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hasWidgets": [
|
||||||
|
"input",
|
||||||
|
"card",
|
||||||
|
"number",
|
||||||
|
"money",
|
||||||
|
"select",
|
||||||
|
"textarea",
|
||||||
|
"imgupload",
|
||||||
|
"file-upload",
|
||||||
|
"link-record"
|
||||||
|
],
|
||||||
|
"expand": {
|
||||||
|
"css": "",
|
||||||
|
"js": "",
|
||||||
|
"url": {
|
||||||
|
"css": "",
|
||||||
|
"js": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"size": "small",
|
||||||
|
"disabledAutoGrid": false,
|
||||||
|
"allowExternalLink": false,
|
||||||
|
"externalLinkShowData": false,
|
||||||
|
"transactional": true
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,16 @@
|
|||||||
|
import qiankun from 'vite-plugin-qiankun';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 【JEECG作为乾坤子应用】Vite适配乾坤以子应用模式运行
|
||||||
|
* @param env
|
||||||
|
*/
|
||||||
|
export function configQiankunMicroPlugin(env: ViteEnv) {
|
||||||
|
const {VITE_GLOB_QIANKUN_MICRO_APP_NAME} = env
|
||||||
|
|
||||||
|
return [
|
||||||
|
qiankun(VITE_GLOB_QIANKUN_MICRO_APP_NAME!, {
|
||||||
|
useDevMode: true,
|
||||||
|
})
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,76 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<keep-alive>
|
||||||
|
<component
|
||||||
|
v-if="currentModal"
|
||||||
|
v-bind="bindParams"
|
||||||
|
:key="currentModal"
|
||||||
|
:is="currentModal"
|
||||||
|
@register="modalRegCache[currentModal].register"
|
||||||
|
@reply="handReply"
|
||||||
|
@selected="reloadPage"
|
||||||
|
/>
|
||||||
|
</keep-alive>
|
||||||
|
<!-- 历史弹出框 -->
|
||||||
|
<HisTaskDealModal ref="taskDealRef" v-bind="bindParams" />
|
||||||
|
<!-- 系统公告弹窗 -->
|
||||||
|
<DynamicNotice ref="showDynamNotice" v-bind="bindParams" />
|
||||||
|
<!-- eoa查看详情 -->
|
||||||
|
<EoaDetailModal ref="detailRef" />
|
||||||
|
<!-- 表单设计器弹窗 -->
|
||||||
|
<DesformDataModal ref="desformRef" v-bind="bindParams" @added="handleDesformDataAdded" />
|
||||||
|
<!-- 我的计划弹窗 -->
|
||||||
|
<PlanModal ref="planRef" v-bind="bindParams" @success="reloadPage" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import { defineComponent, onMounted } from 'vue';
|
||||||
|
import { useDragNotice } from '/@/hooks/web/useDragNotice';
|
||||||
|
import EoaMailBoxInModal from '/@/views/super/eoa/email/components/EoaMailBoxInModal.vue';
|
||||||
|
import DynamicNotice from '@/views/monitor/mynews/DynamicNotice.vue';
|
||||||
|
import EoaDetailModal from '@/views/super/eoa/cmsoa/modules/EoaDetailModal.vue';
|
||||||
|
import PlanModal from '/@/views/super/eoa/plan/components/PlanModal.vue';
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
name: 'JDragNotice',
|
||||||
|
components: {
|
||||||
|
EoaDetailModal,
|
||||||
|
DynamicNotice,
|
||||||
|
EoaMailBoxInModal,
|
||||||
|
PlanModal,
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
const {
|
||||||
|
initDragWebSocket,
|
||||||
|
currentModal,
|
||||||
|
modalParams,
|
||||||
|
modalRegCache,
|
||||||
|
bindParams,
|
||||||
|
taskDealRef,
|
||||||
|
desformRef,
|
||||||
|
handleDesformDataAdded,
|
||||||
|
handReply,
|
||||||
|
reloadPage,
|
||||||
|
} = useDragNotice();
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
initDragWebSocket();
|
||||||
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
currentModal,
|
||||||
|
modalParams,
|
||||||
|
modalRegCache,
|
||||||
|
bindParams,
|
||||||
|
taskDealRef,
|
||||||
|
desformRef,
|
||||||
|
handleDesformDataAdded,
|
||||||
|
handReply,
|
||||||
|
reloadPage,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less"></style>
|
@ -0,0 +1,110 @@
|
|||||||
|
<template>
|
||||||
|
<div :class="[prefixCls]" v-if="showMask && show">
|
||||||
|
<div class="progress-bar-rear">
|
||||||
|
<div class="progress-bar-front" :style="{ width: progressBarWidth }"></div>
|
||||||
|
</div>
|
||||||
|
<div class="value">{{ percentage }}</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { computed, ref } from 'vue';
|
||||||
|
import {useDesign} from "@/hooks/web/useDesign";
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
backColor: {
|
||||||
|
type: [String],
|
||||||
|
default: 'white',
|
||||||
|
},
|
||||||
|
processColor: {
|
||||||
|
type: String,
|
||||||
|
default: '#018FFB',
|
||||||
|
},
|
||||||
|
show: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
const { prefixCls } = useDesign('tinymce-process-mask');
|
||||||
|
|
||||||
|
//显示遮罩
|
||||||
|
const showMask = ref(false);
|
||||||
|
//进度值占比
|
||||||
|
const progressValue = ref<any>(0);
|
||||||
|
//当前数量
|
||||||
|
const currentNum = ref(0);
|
||||||
|
// 计算进度条宽度的计算属性
|
||||||
|
const progressBarWidth = computed(() => {
|
||||||
|
return progressValue.value > 0 ? `${progressValue.value}px` : '0px';
|
||||||
|
});
|
||||||
|
// 计算进度条百分比
|
||||||
|
const percentage = computed(() => {
|
||||||
|
return `${progressValue.value}%`;
|
||||||
|
});
|
||||||
|
// 进度色
|
||||||
|
const frontColor = computed(() => {
|
||||||
|
return props.processColor;
|
||||||
|
});
|
||||||
|
// 后置背景色
|
||||||
|
const rearColor = computed(() => {
|
||||||
|
return props.backColor;
|
||||||
|
});
|
||||||
|
function calcProcess(totalNum) {
|
||||||
|
!showMask.value && (showMask.value = true);
|
||||||
|
currentNum.value += 1;
|
||||||
|
progressValue.value = ((currentNum.value / totalNum) * 100).toFixed(2);
|
||||||
|
console.log('currentNum.value', currentNum.value);
|
||||||
|
console.log('totalNum.value', totalNum);
|
||||||
|
if (currentNum.value == totalNum) {
|
||||||
|
showMask.value = false;
|
||||||
|
currentNum.value = 0;
|
||||||
|
progressValue.value = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
defineExpose({
|
||||||
|
calcProcess,
|
||||||
|
showMask,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
//noinspection LessUnresolvedVariable
|
||||||
|
@prefix-cls: ~'@{namespace}-tinymce-process-mask';
|
||||||
|
|
||||||
|
.@{prefix-cls} {
|
||||||
|
|
||||||
|
& {
|
||||||
|
position: absolute; /* 或者使用固定定位等其他方式 */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5); /* 半透明遮罩 */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-bar-rear {
|
||||||
|
width: 100px; /* 进度条宽度 */
|
||||||
|
height: 10px; /* 进度条高度 */
|
||||||
|
background-color: v-bind(rearColor); /* 进度条颜色 */
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-bar-front {
|
||||||
|
height: 10px; /* 进度条高度 */
|
||||||
|
background-color: v-bind(frontColor); /* 进度条颜色 */
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.value {
|
||||||
|
color: #fff;
|
||||||
|
margin-left: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,12 @@
|
|||||||
|
import {qiankunWindow} from 'vite-plugin-qiankun/dist/helper'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 【JEECG作为乾坤子应用】【判断当前是否是以乾坤子应用的模式运行】
|
||||||
|
*/
|
||||||
|
export function checkIsQiankunMicro(): boolean {
|
||||||
|
return !!qiankunWindow.__POWERED_BY_QIANKUN__;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getGlobal() {
|
||||||
|
return (checkIsQiankunMicro() ? qiankunWindow : window) as Window
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* 【JEECG作为乾坤子应用】
|
||||||
|
*/
|
||||||
|
import type {App} from 'vue';
|
||||||
|
import type {MainAppProps} from "#/main";
|
||||||
|
|
||||||
|
import {destroyStore} from "@/store";
|
||||||
|
import {destroyRouter} from "@/router";
|
||||||
|
import {clearComponent} from "@/components/jeecg/JVxeTable/src/componentMap";
|
||||||
|
|
||||||
|
import {renderWithQiankun} from 'vite-plugin-qiankun/dist/helper';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 以乾坤子应用模式运行
|
||||||
|
* @param render
|
||||||
|
*/
|
||||||
|
export async function useQiankunMicroApp(render: (props?: MainAppProps) => Promise<App>) {
|
||||||
|
let instance: Nullable<App> = null;
|
||||||
|
|
||||||
|
// 注册乾坤子应用生命周期函数
|
||||||
|
renderWithQiankun({
|
||||||
|
async mount(props) {
|
||||||
|
console.debug('[qiankun-micro] mount - props :', props)
|
||||||
|
instance = await render({
|
||||||
|
container: props.container!,
|
||||||
|
hideSider: props.hideSider,
|
||||||
|
hideHeader: props.hideHeader,
|
||||||
|
hideMultiTabs: props.hideMultiTabs,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
bootstrap() {
|
||||||
|
console.debug('[qiankun-micro] bootstrap');
|
||||||
|
},
|
||||||
|
update(props) {
|
||||||
|
console.debug('[qiankun-micro] update: ', props);
|
||||||
|
},
|
||||||
|
unmount(props) {
|
||||||
|
console.debug('[qiankun-micro] unmount: ', props);
|
||||||
|
|
||||||
|
destroyStore();
|
||||||
|
destroyRouter();
|
||||||
|
|
||||||
|
if (instance) {
|
||||||
|
clearComponent();
|
||||||
|
instance.unmount();
|
||||||
|
instance._container.innerHTML = '';
|
||||||
|
instance = null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
return instance!
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function autoUseQiankunMicro(fn: Fn) {
|
||||||
|
return useQiankunMicroApp(fn)
|
||||||
|
}
|
@ -1,9 +1,19 @@
|
|||||||
import type { App } from 'vue';
|
import type { App } from 'vue';
|
||||||
|
import type { Pinia } from 'pinia';
|
||||||
import { createPinia } from 'pinia';
|
import { createPinia } from 'pinia';
|
||||||
const store = createPinia();
|
|
||||||
|
let store: Nullable<Pinia> = null;
|
||||||
|
|
||||||
export function setupStore(app: App<Element>) {
|
export function setupStore(app: App<Element>) {
|
||||||
|
if (store == null) {
|
||||||
|
store = createPinia();
|
||||||
|
}
|
||||||
app.use(store);
|
app.use(store);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 销毁store
|
||||||
|
export function destroyStore() {
|
||||||
|
store = null;
|
||||||
|
}
|
||||||
|
|
||||||
export { store };
|
export { store };
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue