<%_ if (position === 'import') { _%>
<%_ } _%>
<%_ if (position === 'method') { _%>
<%_ } _%>
<%_ if (position === 'rowOperations') { _%>
  <%_ if (clientTheme === 'vben') { _%>
      {
        title: '报表设计',
        name: 'design',
        icon: 'schedule',
        containerType: 'drawer',
      },
      {
        title: '报表预览',
        name: 'preview',
        icon: 'area-chart',
        containerType: 'drawer',
      },
  <%_ } else { _%>
                        <a-tooltip placement="top" title="报表设计">
                            <a-button type="primary" shape="circle" size="small" @click="reportDesinger(row)">
                                <a-icon type="schedule" />
                            </a-button>
                        </a-tooltip>
                        <a-tooltip placement="top" title="报表预览">
                            <a-button type="primary" shape="circle" size="small" @click="reportPreview(row)">
                                <a-icon type="area-chart"></a-icon>
                            </a-button>
                        </a-tooltip>
  <%_ } _%>
<%_ } _%>
<%_ if (position === 'rowClickHandler') { _%>
  <%_ if (clientTheme === 'vben') { _%>
        case 'design':
          switch (operation.containerType) {
            case 'modal':
              this.modalConfig.componentName = 'a-iframe';
              this.modalConfig.iframeUrl = '/ureport/designer?_u=db:' + row.name;
              this.setModalProps({ open: true });
              break;
            case 'drawer':
              this.drawerConfig.componentName = 'a-iframe';
              this.modalConfig.iframeUrl = '/ureport/designer?_u=db:' + row.name;
              this.setDrawerProps({ open: true });
              break;
            case 'route':
            default:
              if (this.pageConfig.baseRouteName) {
                this.go({ name: `${this.pageConfig.baseRouteName}Detail`, params: { entityId: row.id } });
              } else {
                console.log('未定义方法');
              }
          }
          break;
        case 'preview':
          switch (operation.containerType) {
            case 'modal':
              this.modalConfig.componentName = 'a-iframe';
              this.modalConfig.iframeUrl = '/ureport/preview?_u=db:' + row.name;
              this.setModalProps({ open: true });
              break;
            case 'drawer':
              this.drawerConfig.componentName = 'a-iframe';
              this.modalConfig.iframeUrl = '/ureport/preview?_u=db:' + row.name;
              this.setDrawerProps({ open: true });
              break;
            case 'route':
            default:
              if (this.pageConfig.baseRouteName) {
                this.go({ name: `${this.pageConfig.baseRouteName}Detail`, params: { entityId: row.id } });
              } else {
                console.log('未定义方法');
              }
          }
          break;
  <%_ } else { _%>
        <a-tooltip placement="top" title="报表设计">
            <a-button type="primary" shape="circle" size="small" @click="reportDesinger(row)">
                <a-icon type="schedule" />
            </a-button>
        </a-tooltip>
        <a-tooltip placement="top" title="报表预览">
            <a-button type="primary" shape="circle" size="small" @click="reportPreview(row)">
                <a-icon type="area-chart"></a-icon>
            </a-button>
        </a-tooltip>
  <%_ } _%>
<%_ } _%>
<%_ if (position === 'vue-modal') { _%>
        <a-drawer
            title="报表设计器"
            :width="'100%'"
            :destroyOnClose="true"
            :visible="designerVisible"
            :body-style="{ paddingBottom: '80px', height: '100%' }"
            @close="closeDesigner" :maskClosable="false"
        >
            <iframe :src="reportUrl" width="100%" height="100%" seamless title="报表设计"></iframe>
        </a-drawer>
<%_ } _%>
<%_ if (position === 'toolbarButtonClick') { _%>
          case 'new':
            this.modalConfig.componentName = 'a-iframe';
            this.modalConfig.iframeUrl = '/ureport/preview';
            this.setModalProps({ open: true });
          break;
<%_ } _%>
<%_ if (position === 'tools') { _%>
          { code: 'new', name: '', circle: true, icon: 'vxe-icon-add'},
<%_ } _%>
