|
发表于 2022-5-23 16:32
来自手机
|
显示全部楼层
cli_add_css~~ .bg1{ background:yellow; } ~; create temp table aa as select fillna(iif(户主!='',rowid,'')) 户号,rowid old_rowid,* from 户主和家庭成员分开如何合并在一列; create temp table bb as select 户号,村委会,小组 from aa where 户主!=''; create temp table cc as select 户号,户主 姓名,'户主' 与户主关系,户主身份证号码 身份证号码 from aa where 户主!=''; create temp table dd as select 户号,家庭成员姓名 姓名,与户主关系,身份证号码 from aa; create temp table ee as select * from bb join cc using(户号) union all select * from bb join dd using(户号) order by 户号; select 村委会,小组,姓名,iif(与户主关系='户主','<span class="hi">'||与户主关系||'</span>',与户主关系) 与户主关系,身份证号码 from ee; cli_add_script~~ function dom2(a){ var c = a.parentNode; c = c.parentNode; c.classList.add("bg1"); } function dom3(){ var aa = document.querySelectorAll(".hi"); for (i = 0; i < aa.length; i++) { dom2(aa[i]); } } window.addEventListener('load',dom3());~; |
|