<%_ if (position === 'import') { _%>
<%_ } _%>

<%_ if (position === 'method') { _%>

  public result() {
    if (this.statisticsApi.id) {
      this.statisticsApiService().result(this.statisticsApi.id).then(res => {
        console.log(res.data);
      });
    } else {
      this.$message.warning('请先保存然后再进行测试');
    }
  }
<%_ } _%>

<%_ if (position === 'vue-button') { _%>
    <a-col span="3">
        <a-button type="primary" @click="result">测试sql</a-button>
    </a-col>
<%_ } _%>
