<commit_before><template>
  <div>
    <common-header></common-header>
    <div class="con_main">
      <navigator module="exam"></navigator>
      <section class="con_main_r">
        <nav>
          <img src="../../assets/img/house.png" class="vm">
          <span class="vm">您的当前位置 : <span class="">考试管理</span> > <span class="f_blue">题库信息管理</span></span>
        </nav>
        <div class="con_tab">
          <div>
            <button type="button" v-on:click="routeByName('examCreate')" class="inf_btn mr15">添加试题</button>
            <button type="button" @click="dialogTableVisibles = true" class="inf_btn mr15">试题导入</button>
            <el-dialog title="试题导入" :visible.sync="dialogTableVisibles">
              <div class="tc">
                <!--<p class="exal">电子表格文件生成成功</p>-->

              </div>
              <div class="tc">
                <a href="#" download="w3logo" class="inf_btn download" style="display: inline-block;">下  载</a>
                <button v-on:click="dialogTableVisibles = false" type="button" class="qx_btn ml20">取 消</button>
              </div>
            </el-dialog>
            <button type="button" class="inf_btn mr15">下载导入模板</button>
            <el-button type="button" v-on:click="click" :loading="showloading" @click="dialogTableVisible = true" class="inf_btn  export_bor">导  出</el-button>
            <el-dialog title="电子表格文件生成成功" :visible.sync="dialogTableVisible">
              <div class="tc">
                <!--<p class="exal">电子表格文件生成成功</p>-->
                <img src="../../assets/img/face_img1.png" class="mb20" style="width: 100px;"/>
              </div>
              <div class="tc">
                <a href="#" download="w3logo" class="inf_btn download" style="display: inline-block;">下  载</a>
                <button v-on:click="dialogTableVisible = false" type="button" class="qx_btn ml20">取 消</button>
              </div>
            </el-dialog>
          </div>
          <el-form :inline="true" :model="formInLine" class="demo-form-inline mt20">
            <!--<el-row>-->
            <el-form-item label="题目">
              <el-input v-model="formInLine.user" placeholder="题目"></el-input>
            </el-form-item>
            <el-form-item label="类型">
              <el-select v-model="value" placeholder="请选择">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="开始时间">
              <el-col>
                <el-date-picker type="date" placeholder="选择日期" v-model="formInLine.date" style="width: 100%;"></el-date-picker>
              </el-col>
            </el-form-item>
            <el-form-item class="fr">
              <button type="button" class="line-btn ">查  询</button>
            </el-form-item>
            <!--</el-row>-->
          </el-form>
          <el-table  :data="tableData" border style="width: 100%">
            <el-table-column prop="examCount" label="试题题目" width="">
            </el-table-column>
            <el-table-column prop="examScore" label="试题类型" width="">
            </el-table-column>
            <el-table-column prop="examTime" label="创建时间" width="">
            </el-table-column>
            <el-table-column label="操作" class="tc" width="">
              <template scope="scope">
                <el-button @click="checkPass(scope.row.id)" type="text" size="small">编辑</el-button>
                <el-button @click="open2" type="text" size="small">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
          <div class="tc mt20">
            <el-pagination @current-change="handleCurrentChange" :current-page="currentPage"  :page-size="10" layout="total, prev, pager, next" :total="total"></el-pagination>
          </div>
        </div>
      </section>
    </div>

  </div>
</template>

<script>
  import commonHeader from '../../components/CommonHeader'
  import navigator from '../../components/Navigator'
  import api from '../../services/api'
  import router from '../../router'
  export default {
    data: function () {
      return {
        data: [],
        take: 20,
        currentPage: 0,
        total: 0,
        showloading: false,
        dialogTableVisible: false,
        dialogTableVisibles: false,
        formInLine: {
          department: '',
          area: '',
          name: '',
          mobile: '',
          date: ''
        },
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {<commit_msg>add excel template file.<commit_after><template>
  <div>
    <common-header></common-header>
    <div class="con_main">
      <navigator module="exam"></navigator>
      <section class="con_main_r">
        <nav>
          <img src="../../assets/img/house.png" class="vm">
          <span class="vm">您的当前位置 : <span class="">考试管理</span> > <span class="f_blue">题库信息管理</span></span>
        </nav>
        <div class="con_tab">
          <div>
            <button type="button" v-on:click="routeByName('examCreate')" class="inf_btn mr15">添加试题</button>
            <button type="button" @click="dialogTableVisibles = true" class="inf_btn mr15">试题导入</button>
            <el-dialog title="试题导入" :visible.sync="dialogTableVisibles">
              <div class="tc">
                <!--<p class="exal">电子表格文件生成成功</p>-->

              </div>
              <div class="tc">
                <a href="#" download="w3logo" class="inf_btn download" style="display: inline-block;">下  载</a>
                <button v-on:click="dialogTableVisibles = false" type="button" class="qx_btn ml20">取 消</button>
              </div>
            </el-dialog>
            <a v-bind:href="excelUrl"   class="inf_btn mr15 vm dis_in_block">下载导入模板</a>
            <el-button type="button" v-on:click="click" :loading="showloading" @click="dialogTableVisible = true" class="inf_btn  export_bor">导  出</el-button>
            <el-dialog title="电子表格文件生成成功" :visible.sync="dialogTableVisible">
              <div class="tc">
                <!--<p class="exal">电子表格文件生成成功</p>-->
                <img src="../../assets/img/face_img1.png" class="mb20" style="width: 100px;"/>
              </div>
              <div class="tc">
                <a href="#" download="w3logo" class="inf_btn download" style="display: inline-block;">下  载</a>
                <button v-on:click="dialogTableVisible = false" type="button" class="qx_btn ml20">取 消</button>
              </div>
            </el-dialog>
          </div>
          <el-form :inline="true" :model="formInLine" class="demo-form-inline mt20">
            <!--<el-row>-->
            <el-form-item label="题目">
              <el-input v-model="formInLine.user" placeholder="题目"></el-input>
            </el-form-item>
            <el-form-item label="类型">
              <el-select v-model="value" placeholder="请选择">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="开始时间">
              <el-col>
                <el-date-picker type="date" placeholder="选择日期" v-model="formInLine.date" style="width: 100%;"></el-date-picker>
              </el-col>
            </el-form-item>
            <el-form-item class="fr">
              <button type="button" class="line-btn ">查  询</button>
            </el-form-item>
            <!--</el-row>-->
          </el-form>
          <el-table  :data="tableData" border style="width: 100%">
            <el-table-column prop="examCount" label="试题题目" width="">
            </el-table-column>
            <el-table-column prop="examScore" label="试题类型" width="">
            </el-table-column>
            <el-table-column prop="examTime" label="创建时间" width="">
            </el-table-column>
            <el-table-column label="操作" class="tc" width="">
              <template scope="scope">
                <el-button @click="checkPass(scope.row.id)" type="text" size="small">编辑</el-button>
                <el-button @click="open2" type="text" size="small">删除</el-button>
              </template>
            </el-table-column>
          </el-table>
          <div class="tc mt20">
            <el-pagination @current-change="handleCurrentChange" :current-page="currentPage"  :page-size="10" layout="total, prev, pager, next" :total="total"></el-pagination>
          </div>
        </div>
      </section>
    </div>

  </div>
</template>

<script>
  import commonHeader from '../../components/CommonHeader'
  import navigator from '../../components/Navigator'
  import api from '../../services/api'
  import router from '../../router'
  import axios from 'axios'
  export default {
    data: function () {
      return {
        excelUrl: axios.defaults.imageServer + '/import/template/Question.xlsx',
        data: [],
        take: 20,
        currentPage: 0,
        total: 0,
        showloading: false,
        dialogTableVisible: false,
        dialogTableVisibles: false,
        formInLine: {
          department: '',
          area: '',
          name: '',
          mobile: '',
          date: ''
        },
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
{'fraction_non_alphanumeric': 0.17950046636957198, 'fraction_numerical': 0.008083739247590423, 'mean_word_length': 1.8840406455469216, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2271641', 'n_tokens_mistral': 3161, 'n_tokens_neox': 3177, 'n_words': 546}