public tag: string = "<#if ctrl.getGroupPSCodeList?? && ctrl.getGroupPSCodeList()??>${ctrl.getGroupPSCodeList().getCodeName()}</#if>";
public groupCodelist: any = {<#if ctrl.getGroupPSCodeList?? && ctrl.getGroupPSCodeList()??>type:'${ctrl.getGroupPSCodeList().getCodeListType()}',tag:'${ctrl.getGroupPSCodeList().getCodeName()}'</#if>};
public codelistType: string = "<#if ctrl.getGroupPSCodeList?? && ctrl.getGroupPSCodeList()??>${ctrl.getGroupPSCodeList().getCodeListType()}</#if>";
public groupCodelist: any = {<#if ctrl.getGroupPSCodeList?? && ctrl.getGroupPSCodeList()??>type:'${ctrl.getGroupPSCodeList().getCodeListType()}',tag:'${ctrl.getGroupPSCodeList().getCodeName()}'</#if>};
/**
/**
* 根据分组代码表绘制分组列表
* 根据分组代码表绘制分组列表
...
@@ -319,19 +321,30 @@ import CodeListService from "@/codelist/codelist-service";
...
@@ -319,19 +321,30 @@ import CodeListService from "@/codelist/codelist-service";
*/
*/
public async drawCodelistGroup(){
public async drawCodelistGroup(){
let groups: Array<any> = [];
let groups: Array<any> = [];
let fields: Array<any> = [];
let groupTree:Array<any> = [];
let groupTree:Array<any> = [];
let data:Array<any> = [...this.items];
let data:Array<any> = [...this.items];
// 动态代码表
if(Object.keys(this.groupCodelist).length > 0){
if (Object.is(this.codelistType, "DYNAMIC")) {
let groupCodelist: any = await this.codeListService.getDataItems(this.groupCodelist);
groups = await this.codeListService.getItems(this.tag);