
delete from "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON" where dbform_id in (select id from "LOWCODE_FRAME"."LOWCODE_DBFORM" where TABLE_NAME = 'lc_risk_hazard_manage');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1963501651854442497, 1, 1, '2025-09-04 15:17:29', 100, 1, '2025-11-05 16:53:32', 0, 1963446160885366786, '完成整改', 'refactorFinishBtn', '', 'menu', 'primary', 3, 'return {
  color: "#409eff",
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    const userStore = useFun.useUserStoreWithOut()
    return row.corrective_confirm_people_id == userStore.user.id 
    || userStore.user.supAdmin //true 显示 false 隐藏
  }
}', 'Y', 'N', '');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1963501955215867906, 1, 1, '2025-09-04 15:18:41', 100, 1, '2025-11-05 15:00:04', 0, 1963446160885366786, '查看', 'previewBtn', '', 'menu', 'primary', 13, 'return {
  color: ''#626aef'',
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    return true //true 显示 false 隐藏
  }
}', 'Y', 'N', '');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1972196619245912065, 1, 1, '2025-09-28 15:08:10', 100, null, null, 0, 1963446160885366786, '同步数据', 'syncDataBtn', 'ep:link', 'header', 'primary', 1, '', 'Y', 'N', '');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1977940057941606402, 1, 1, '2025-10-14 11:30:33', 100, 1, '2025-11-07 16:35:06', 0, 1963446160885366786, '编辑', 'editButton', 'ep:edit-pen', 'menu', 'primary', 11, 'return {
  color: ''#626aef'',
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    const userStore = useFun.useUserStoreWithOut();
    return row.source == 1 && (row.check_people_id == userStore.user.id
      || row.create_user == userStore.user.id
      || userStore.user.supAdmin) //true 显示 false 隐藏 //true 显示 false 隐藏
  }
}', 'Y', 'N', '');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1977940340780302337, 1, 1, '2025-10-14 11:31:40', 100, 1, '2025-11-05 16:52:54', 0, 1963446160885366786, '删除', 'delButton', 'ep:delete', 'menu', 'primary', 12, 'return {
  color: ''#626aef'',
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    const userStore = useFun.useUserStoreWithOut();
    return row.source == 1 &&
      (row.check_people_id == userStore.user.id
        || row.create_user == userStore.user.id
        || userStore.user.supAdmin) //true 显示 false 隐藏
  }
}', 'Y', 'N', 'return {
  //简体中文
  ''zh-CN'': ''删除'',
  //English
  ''en'': '''',
}');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1985181757202296834, 1, 1, '2025-11-03 11:06:28', 100, 1, '2025-11-10 09:23:22', 0, 1963446160885366786, '开始整改', 'refactorBeginBtn', '', 'menu', 'primary', 2, 'return {
  color: "#409eff",
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    const userStore = useFun.useUserStoreWithOut()
    return row.corrective_charge_people_id == userStore.user.id || userStore.user.supAdmin //true 显示 false 隐藏
  }
}', 'Y', 'N', '');
insert into "LOWCODE_FRAME"."LOWCODE_DBFORM_BUTTON"("ID", "TENANT_ID", "CREATE_USER", "CREATE_TIME", "CREATE_DEPT", "UPDATE_USER", "UPDATE_TIME", "IS_DELETED", "DBFORM_ID", "BUTTON_NAME", "BUTTON_CODE", "BUTTON_ICON", "BUTTON_LOCATION", "BUTTON_TYPE", "BUTTON_SORT", "BUTTON_EXP", "BUTTON_SHOW", "BUTTON_AUTH", "BUTTON_I18N") values(1985963225109307393, 1, 1, '2025-11-05 14:51:45', 100, 1, '2025-11-05 16:52:33', 0, 1963446160885366786, '完成检查', 'reviewFinishBtn', '', 'menu', 'primary', 1, 'return {
  color: "#409eff",
  plain: true,
  handleShow: (row) => { //按钮显隐增强  row：当前行数据（row 仅操作列按钮可用）
    const userStore = useFun.useUserStoreWithOut();
    return (row.corrective_status == 0 || row.corrective_status == 2) &&
      (row.check_people_id == userStore.user.id || row.create_user == userStore.user.id
        || userStore.user.supAdmin)//true 显示 false 隐藏
  }
}', 'Y', 'N', '');
