You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.add"{{ end }}type="primary"icon="plus"@click="openDialog">新增</el-button>
522
+
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.add"{{ end }}type="primary"icon="plus"@click="openDialog()">新增</el-button>
521
523
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.batchDelete"{{ end }}icon="delete"style="margin-left: 10px;":disabled="!multipleSelection.length"@click="onDelete">删除</el-button>
522
524
{{ if .HasExcel -}}
523
525
<ExportTemplate{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.exportTemplate"{{ end }}template-id="{{$templateID}}" />
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.add"{{ end }}type="primary"linkclass="table-button"@click="openDialog(scope.row)"><el-iconstyle="margin-right: 5px"><InfoFilled /></el-icon>新增子节点</el-button>
636
+
{{- end }}
632
637
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.info"{{ end }}type="primary"linkclass="table-button"@click="getDetails(scope.row)"><el-iconstyle="margin-right: 5px"><InfoFilled /></el-icon>查看</el-button>
633
638
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.edit"{{ end }}type="primary"linkicon="edit"class="table-button"@click="update{{.StructName}}Func(scope.row)">编辑</el-button>
634
-
<el-button{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.delete"{{ end }}type="primary"linkicon="delete"@click="deleteRow(scope.row)">删除</el-button>
639
+
<el-button{{if.IsTree }}v-if="!scope.row.children?.length"{{ end }}{{if$global.AutoCreateBtnAuth }}v-auth="btnAuth.delete"{{ end }}type="primary"linkicon="delete"@click="deleteRow(scope.row)">删除</el-button>
0 commit comments