@@ -210,9 +210,10 @@ class ReportRecord extends StatelessWidget {
Widget _buildSmailCardButtons() {
return Row(
children: [
- textButton('修改', () {
- onEditReport?.call(currReport.reportCode ?? '');
- }),
+ if (currReport.canEditReport)
+ textButton('修改', () {
+ onEditReport?.call(currReport.reportCode ?? '');
+ }),
const SizedBox(
width: 15,
),