def get_heads(self): heads = ModelTable.get_heads(self) for index, head in enumerate(heads): if head['name'] == 'inspector': heads.insert(index + 1, { 'name': 'code', 'label': '编码', 'width': 90 }) break return heads
def get_heads(self): heads = ModelTable.get_heads(self) heads.append({ 'name': 'hight_region', 'label': '围栏区域', 'editor': 'com-table-extraclick', 'extra_label': '提示', 'extra_fun': 'hight_region', 'width': 60, }) return heads