| | |
| | | <template> |
| | | <div style="padding: 0px 10px" > |
| | | <div style="padding: 0px 10px"> |
| | | <div> |
| | | <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" |
| | | style="margin-bottom: 10px"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="small" type="text" v-show="scope.row.publish != 1">确认发布</el-button> |
| | | <el-button size="small" type="text" v-show="scope.row.publish == 1">取消发布</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-view" |
| | | @click="handleDetail(scope.row.id)" |
| | | >详细</el-button> |
| | | <el-button size="small" type="text" v-show="scope.row.publish != 1">确认发布</el-button> |
| | | <el-button size="small" type="text" v-show="scope.row.publish == 1">取消发布</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row.id)">详细</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" /> |
| | | |
| | | </div> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listScore, getScore, delScore, addScore, updateScore, publishScore,detailScore } from "@/api/platform/check-score"; |
| | | import { listScore, getScore, delScore, addScore, updateScore, publishScore, detailScore } from "@/api/platform/check-score"; |
| | | import { areaSelect } from '@/api/system/dept'; |
| | | import * as echarts from 'echarts'; |
| | | let lineChart = null; |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | deptId: null, |
| | | examineTag:0 |
| | | examineTag: 0 |
| | | }, |
| | | tableData: [], |
| | | loading: false, |
| | | tableLoading: false, |
| | | searchForm: { |
| | | time: null, |
| | | } |
| | |
| | | this.date = year + '-' + month; |
| | | this.queryParams.date = this.date; |
| | | this.areaSelect(); |
| | | this.getChart(this.$route.query.index) |
| | | this.getList(this.$route.query.index); |
| | | }, |
| | | computed: { |
| | |
| | | getList() { |
| | | this.tableLoading = true; |
| | | detailScore(this.queryParams).then(response => { |
| | | this.tableData = response.rows; |
| | | this.total = response.total; |
| | | console.log(response); |
| | | if (response.rows) { |
| | | this.tableData = response.rows; |
| | | this.total = response.total; |
| | | } else { |
| | | this.tableData = []; |
| | | this.total = 0; |
| | | } |
| | | this.tableLoading = false; |
| | | }); |
| | | }, |
| | |
| | | data: dataList.map((item) => item[0]), |
| | | }, |
| | | yAxis: { |
| | | |
| | | min: 'dataMin' |
| | | }, |
| | | series: [ |
| | | { |
| | |
| | | |
| | | dateChange() { |
| | | this.queryParams.date = this.date; |
| | | console.log(this.queryParams); |
| | | this.getChart(this.queryParams.deptId); |
| | | this.getList(this.queryParams.deptId); |
| | | } |
| | | |
| | | }, |