| | |
| | | </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> |
| | |
| | | |
| | | <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'; |
| | |
| | | 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); |
| | | }, |