提交 ecf67a75 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibz-dst,应用]

上级 8ca75dac
......@@ -347,165 +347,10 @@
{
"srfkey": "CLRuleGroup",
"emptytext": "",
"codelisttype":"static",
"items": [
{
"id": "TIME",
"label": "时效预警(权利保障)",
"text": "时效预警(权利保障)",
"class":"",
"data":"",
"codename":"Time",
"value": "TIME",
"disabled": false
}
, {
"id": "FLOW",
"label": "流程监控",
"text": "流程监控",
"class":"",
"data":"",
"codename":"Flow",
"value": "FLOW",
"disabled": false
}
, {
"id": "REP",
"label": "汇总分析",
"text": "汇总分析",
"class":"",
"data":"",
"codename":"Rep",
"value": "REP",
"disabled": false
}
, {
"id": "CHECK",
"label": "评查",
"text": "评查",
"class":"",
"data":"",
"codename":"Check",
"value": "CHECK",
"disabled": false
}
, {
"id": "AI",
"label": "辅助审查",
"text": "辅助审查",
"class":"",
"data":"",
"codename":"Ai",
"value": "AI",
"disabled": false
}
, {
"id": "TEST",
"label": "测试",
"text": "测试",
"class":"",
"data":"",
"codename":"Test",
"value": "TEST",
"disabled": false
}
, {
"id": "GJ_HFDF",
"label": "高检-回复答复",
"text": "高检-回复答复",
"class":"",
"data":"",
"codename":"Gj_hfdf",
"color": "rgba(0, 98, 255, 1)",
"value": "GJ_HFDF",
"disabled": false
}
, {
"id": "GJ_WSXF",
"label": "高检-网上信访",
"text": "高检-网上信访",
"class":"",
"data":"",
"codename":"Gj_wsxf",
"color": "rgba(0, 98, 255, 1)",
"value": "GJ_WSXF",
"disabled": false
}
, {
"id": "AGPC",
"label": "案管-评查",
"text": "案管-评查",
"class":"",
"data":"",
"codename":"Agpc",
"value": "AGPC",
"disabled": false
}
, {
"id": "AGQL",
"label": "案管-权利",
"text": "案管-权利",
"class":"",
"data":"",
"codename":"Agql",
"value": "AGQL",
"disabled": false
}
, {
"id": "AGLC",
"label": "案管-流程",
"text": "案管-流程",
"class":"",
"data":"",
"codename":"Aglc",
"value": "AGLC",
"disabled": false
}
, {
"id": "AGPC2",
"label": "案管-评查2.0",
"text": "案管-评查2.0",
"class":"",
"data":"",
"codename":"Agpc2",
"value": "AGPC2",
"disabled": false
}
, {
"id": "AGQL2",
"label": "案管-权利2.0",
"text": "案管-权利2.0",
"class":"",
"data":"",
"codename":"Agql2",
"value": "AGQL2",
"disabled": false
}
, {
"id": "AGLC2",
"label": "案管-流程2.0",
"text": "案管-流程2.0",
"class":"",
"data":"",
"codename":"Aglc2",
"value": "AGLC2",
"disabled": false
}
]
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
"srfkey": "AppType",
......
/**
* 代码表--规则分组
*
* @export
* @class CLRuleGroup
*/
export default class CLRuleGroup {
/**
* 是否启用缓存
*
* @type boolean
* @memberof CLRuleGroup
*/
public isEnableCache:boolean = true;
/**
* 过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public static expirationTime:any;
/**
* 预定义类型
*
* @type string
* @memberof CLRuleGroup
*/
public predefinedType:string ='RUNTIME';
/**
* 缓存超长时长
*
* @type any
* @memberof CLRuleGroup
*/
public cacheTimeout:any = -1;
/**
* 代码表模型对象
*
* @type any
* @memberof CLRuleGroup
*/
public codelistModel:any = {
codelistid:"CLRuleGroup"
};
/**
* 获取过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public getExpirationTime(){
return CLRuleGroup.expirationTime;
}
/**
* 设置过期时间
*
* @type any
* @memberof CLRuleGroup
*/
public setExpirationTime(value:any){
CLRuleGroup.expirationTime = value;
}
/**
* 自定义参数集合
*
* @type any
* @memberof CLRuleGroup
*/
public userParamNames:any ={
}
/**
* 查询参数集合
*
* @type any
* @memberof CLRuleGroup
*/
public queryParamNames:any ={
}
/**
* 获取数据项
*
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CLRuleGroup
*/
public getItems(data: any={}, isloading?: boolean): Promise<any> {
return Promise.reject([]);
}
/**
* 处理查询参数
* @param data 传入data
* @memberof CLRuleGroup
*/
public handleQueryParam(data:any){
let tempData:any = data?JSON.parse(JSON.stringify(data)):{};
if(this.userParamNames && Object.keys(this.userParamNames).length >0){
Object.keys(this.userParamNames).forEach((name: string) => {
if (!name) {
return;
}
let value: string | null = this.userParamNames[name];
if (value && value.startsWith('%') && value.endsWith('%')) {
const key = value.substring(1, value.length - 1);
if (this.codelistModel && this.codelistModel.hasOwnProperty(key)) {
value = (this.codelistModel[key] !== null && this.codelistModel[key] !== undefined) ? this.codelistModel[key] : null;
} else {
value = null;
}
}
Object.assign(tempData, { [name]: value });
});
}
Object.assign(tempData,{page: 0, size: 1000});
if(this.queryParamNames && Object.keys(this.queryParamNames).length > 0){
Object.assign(tempData,this.queryParamNames);
}
return tempData;
}
}
......@@ -41,6 +41,7 @@ export class CodeListRegister {
protected init(): void {
this.allCodeList.set('CLModel', () => import('@/codelist/clmodel'));
this.allCodeList.set('CLMetric', () => import('@/codelist/clmetric'));
this.allCodeList.set('CLRuleGroup', () => import('@/codelist/clrule-group'));
}
/**
......
......@@ -43,21 +43,7 @@ export default {
"empty": "",
},
CLRuleGroup: {
"TIME": "时效预警(权利保障)",
"FLOW": "流程监控",
"REP": "汇总分析",
"CHECK": "评查",
"AI": "辅助审查",
"TEST": "测试",
"GJ_HFDF": "高检-回复答复",
"GJ_WSXF": "高检-网上信访",
"AGPC": "案管-评查",
"AGQL": "案管-权利",
"AGLC": "案管-流程",
"AGPC2": "案管-评查2.0",
"AGQL2": "案管-权利2.0",
"AGLC2": "案管-流程2.0",
"empty": ""
"empty": "",
},
AppType: {
"INNER": "内置应用",
......
......@@ -43,20 +43,6 @@ export default {
"empty": "",
},
CLRuleGroup: {
"TIME": "时效预警(权利保障)",
"FLOW": "流程监控",
"REP": "汇总分析",
"CHECK": "评查",
"AI": "辅助审查",
"TEST": "测试",
"GJ_HFDF": "高检-回复答复",
"GJ_WSXF": "高检-网上信访",
"AGPC": "案管-评查",
"AGQL": "案管-权利",
"AGLC": "案管-流程",
"AGPC2": "案管-评查2.0",
"AGQL2": "案管-权利2.0",
"AGLC2": "案管-流程2.0",
"empty": "",
},
AppType: {
......
......@@ -353,167 +353,12 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"items": []
},
{
srfkey: "CLRuleGroup",
emptytext: "",
"codelisttype":"static",
items: [
{
id: "TIME",
label: "时效预警(权利保障)",
text: "时效预警(权利保障)",
"class":"",
"data":"",
"codename":"Time",
value: "TIME",
disabled: false,
},
{
id: "FLOW",
label: "流程监控",
text: "流程监控",
"class":"",
"data":"",
"codename":"Flow",
value: "FLOW",
disabled: false,
},
{
id: "REP",
label: "汇总分析",
text: "汇总分析",
"class":"",
"data":"",
"codename":"Rep",
value: "REP",
disabled: false,
},
{
id: "CHECK",
label: "评查",
text: "评查",
"class":"",
"data":"",
"codename":"Check",
value: "CHECK",
disabled: false,
},
{
id: "AI",
label: "辅助审查",
text: "辅助审查",
"class":"",
"data":"",
"codename":"Ai",
value: "AI",
disabled: false,
},
{
id: "TEST",
label: "测试",
text: "测试",
"class":"",
"data":"",
"codename":"Test",
value: "TEST",
disabled: false,
},
{
id: "GJ_HFDF",
label: "高检-回复答复",
text: "高检-回复答复",
"class":"",
"data":"",
"codename":"Gj_hfdf",
"color": "rgba(0, 98, 255, 1)",
value: "GJ_HFDF",
disabled: false,
},
{
id: "GJ_WSXF",
label: "高检-网上信访",
text: "高检-网上信访",
"class":"",
"data":"",
"codename":"Gj_wsxf",
"color": "rgba(0, 98, 255, 1)",
value: "GJ_WSXF",
disabled: false,
},
{
id: "AGPC",
label: "案管-评查",
text: "案管-评查",
"class":"",
"data":"",
"codename":"Agpc",
value: "AGPC",
disabled: false,
},
{
id: "AGQL",
label: "案管-权利",
text: "案管-权利",
"class":"",
"data":"",
"codename":"Agql",
value: "AGQL",
disabled: false,
},
{
id: "AGLC",
label: "案管-流程",
text: "案管-流程",
"class":"",
"data":"",
"codename":"Aglc",
value: "AGLC",
disabled: false,
},
{
id: "AGPC2",
label: "案管-评查2.0",
text: "案管-评查2.0",
"class":"",
"data":"",
"codename":"Agpc2",
value: "AGPC2",
disabled: false,
},
{
id: "AGQL2",
label: "案管-权利2.0",
text: "案管-权利2.0",
"class":"",
"data":"",
"codename":"Agql2",
value: "AGQL2",
disabled: false,
},
{
id: "AGLC2",
label: "案管-流程2.0",
text: "案管-流程2.0",
"class":"",
"data":"",
"codename":"Aglc2",
value: "AGLC2",
disabled: false,
},
]
"srfkey": "CLRuleGroup",
"emptytext": "",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
srfkey: "AppType",
......
......@@ -31,7 +31,7 @@
:localContext ='{ }'
:localParam ='{ }'
tag='CLRuleGroup'
codelistType='STATIC'
codelistType='DYNAMIC'
valueSeparator=";"
mode="str"
name="rulegroup"
......
......@@ -42,7 +42,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.rulegroup" tag='CLRuleGroup' codelistType='STATIC' renderMode="STR" valueSeparator=";" textSeparator="、" ></codelist>
<codelist :value="row.rulegroup" tag='CLRuleGroup' codelistType='DYNAMIC' renderMode="STR" valueSeparator=";" textSeparator="、" ></codelist>
</template>
</template>
</el-table-column>
......@@ -1168,7 +1168,7 @@ export default class MainBase extends Vue implements ControlInterface {
{
name: 'rulegroup',
srfkey: 'CLRuleGroup',
codelistType : 'STATIC',
codelistType : 'DYNAMIC',
textSeparator: '、',
renderMode: 'string',
valueSeparator: ";",
......
......@@ -73,7 +73,7 @@
:localContext ='{ }'
:localParam ='{ }'
tag='CLRuleGroup'
codelistType='STATIC'
codelistType='DYNAMIC'
valueSeparator=";"
mode="str"
name="rulegroup"
......
......@@ -54,7 +54,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.rulegroup" tag='CLRuleGroup' codelistType='STATIC' renderMode="STR" valueSeparator=";" textSeparator="、" ></codelist>
<codelist :value="row.rulegroup" tag='CLRuleGroup' codelistType='DYNAMIC' renderMode="STR" valueSeparator=";" textSeparator="、" ></codelist>
</template>
</template>
</el-table-column>
......@@ -1196,7 +1196,7 @@ export default class MainBase extends Vue implements ControlInterface {
{
name: 'rulegroup',
srfkey: 'CLRuleGroup',
codelistType : 'STATIC',
codelistType : 'DYNAMIC',
textSeparator: '、',
renderMode: 'string',
valueSeparator: ";",
......
[
{
"name":"规则分组",
"code":"CLRuleGroup",
"group":"",
"memo":"",
"enable":"",
"items":[
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Time",
"value":"TIME",
"label":"时效预警(权利保障)",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Flow",
"value":"FLOW",
"label":"流程监控",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Rep",
"value":"REP",
"label":"汇总分析",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Check",
"value":"CHECK",
"label":"评查",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Ai",
"value":"AI",
"label":"辅助审查",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Test",
"value":"TEST",
"label":"测试",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Gj_hfdf",
"value":"GJ_HFDF",
"label":"高检-回复答复",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Gj_wsxf",
"value":"GJ_WSXF",
"label":"高检-网上信访",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Agpc",
"value":"AGPC",
"label":"案管-评查",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Agql",
"value":"AGQL",
"label":"案管-权利",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Aglc",
"value":"AGLC",
"label":"案管-流程",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Agpc2",
"value":"AGPC2",
"label":"案管-评查2.0",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Agql2",
"value":"AGQL2",
"label":"案管-权利2.0",
"disabled":"",
"showorder":""
},
{
"catalog_id":"CLRuleGroup",
"catalog_name":"规则分组",
"value_key":"CLRuleGroup-Aglc2",
"value":"AGLC2",
"label":"案管-流程2.0",
"disabled":"",
"showorder":""
}
]
}
]
package cn.ibizlab.util.client;
import com.alibaba.fastjson.JSONArray;
import org.springframework.stereotype.Component;
@Component
public class IBZDictFallback implements IBZDictFeignClient {
@Override
public Boolean syncRuntimeDict(JSONArray catalogs) {
return null;
}
}
package cn.ibizlab.util.client;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.List;
import java.util.Map;
@FeignClient(value = "${ibiz.ref.service.dict:ibzdict-api}",contextId = "dict",fallback = IBZDictFallback.class)
public interface IBZDictFeignClient
{
@RequestMapping(method = RequestMethod.POST, value = "/dictionarys/catalogs/sync")
Boolean syncRuntimeDict(@RequestBody JSONArray catalogs);
}
......@@ -6,38 +6,6 @@ public class StaticDict {
/**
* 代码表[规则分组]
*/
@Getter
public enum CLRuleGroup {
TIME("TIME","时效预警(权利保障)"),
FLOW("FLOW","流程监控"),
REP("REP","汇总分析"),
CHECK("CHECK","评查"),
AI("AI","辅助审查"),
TEST("TEST","测试"),
GJ_HFDF("GJ_HFDF","高检-回复答复"),
GJ_WSXF("GJ_WSXF","高检-网上信访"),
AGPC("AGPC","案管-评查"),
AGQL("AGQL","案管-权利"),
AGLC("AGLC","案管-流程"),
AGPC2("AGPC2","案管-评查2.0"),
AGQL2("AGQL2","案管-权利2.0"),
AGLC2("AGLC2","案管-流程2.0");
private String value;
private String text;
private String valueSeparator=";";
private String textSeparator="、";
private String emptyText="";
CLRuleGroup(String value , String text) {
this.value=value;
this.text = text;
}
}
/**
* 代码表[扩展表格单元格垂直对齐方式]
......
......@@ -41,6 +41,9 @@ public class PermissionSyncJob implements ApplicationRunner {
@Lazy
IBZLiteFeignClient liteFeignClient;
@Autowired
@Lazy
cn.ibizlab.util.client.IBZDictFeignClient dictFeignClient;
@Override
public void run(ApplicationArguments args) {
......@@ -78,5 +81,16 @@ public class PermissionSyncJob implements ApplicationRunner {
try {
InputStream runtimeDict = this.getClass().getResourceAsStream("/sysmodel/RuntimeDict.json"); //获取当前系统所有实体资源能力
String strRuntimeDict = IOUtils.toString(runtimeDict,"UTF-8");
if(dictFeignClient.syncRuntimeDict(JSONArray.parseArray(strRuntimeDict))) {
log.info("推送系统预置代码表成功");
}else{
log.error("推送系统预置代码表失败");
}
} catch (Exception e) {
log.error("推送系统预置代码表失败");
}
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册