GuLiMmo
2023-12-18 5537bb460ef58d65da701302e95af7c9f46092e5
src/views/evaluate/evaluateTask.vue
@@ -14,7 +14,7 @@
      </template>
      <template #menu="{ size, row, index }">
        <el-button type="primary" text plain icon="el-icon-edit" @click="editDialog(row)">编辑</el-button>
        <el-button type="primary" text plain icon="el-icon-position" @click="publicTimeBtn(row)">发布</el-button>
        <el-button type="primary" text plain icon="el-icon-position" @click="publicTimeBtn(row)" v-if="row.status === 2">发布</el-button>
        <el-button type="primary" text plain icon="el-icon-download">导出</el-button>
      </template>
    </avue-crud>
@@ -40,7 +40,7 @@
<script>
import { getList, getDetail, add, update, remove } from '@/api/evaluate/evaluateTask';
import option from '@/option/evaluate/evaluateTask';
import { option, sectionOption } from '@/option/evaluate/evaluateTask';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
@@ -103,6 +103,9 @@
        let params = {
          type: n,
        };
        // 更改option
        !n ? (this.option = option) : (this.option = sectionOption)
        console.log(this.option);
        this.page.currentPage = 1;
        this.onLoad(this.page, params);
      },