| | |
| | | "babel-jest": "23.6.0", |
| | | "babel-plugin-dynamic-import-node": "2.3.3", |
| | | "chalk": "2.4.2", |
| | | "comlink-loader": "^2.0.0", |
| | | "connect": "3.6.6", |
| | | "eslint": "6.7.2", |
| | | "eslint-plugin-vue": "6.2.2", |
| | |
| | | 'sidebar' |
| | | ]), |
| | | routes() { |
| | | console.log(this.$router.options.routes); |
| | | return this.$router.options.routes |
| | | }, |
| | | activeMenu() { |
| | |
| | | <el-table-column prop="approver" label="审æ¹äºº" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="info" icon="el-icon-user"> |
| | | <el-tag v-if="scope.row.approver!=null && scope.row.approver!=''" type="info" icon="el-icon-user"> |
| | | <i class="el-icon-user">{{ scope.row.approver }}</i> |
| | | </el-tag> |
| | | </span> |
| | |
| | | </div> |
| | | <div class="bottom"> |
| | | <el-button type="primary" size="mini">æ°æ®å¯¼åº</el-button> |
| | | <!-- <el-button type="primary" size="mini" @click="testWork">æµè¯</el-button> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import * as echarts from 'echarts' |
| | | import { getSupplierList, getTestSampleStatistics, getSupplierNoPassStatistics, getNoPassProjectStatistics, getSampleOptions } from '@/api/experiment/passRateStatistics'; |
| | | import { dateFormat } from '../../../utils/dateUtil' |
| | | import MyWorker from 'comlink-loader!../../../worker/test'; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | this.tableStart() |
| | | }, |
| | | methods: { |
| | | testWork(){ |
| | | const inst = new MyWorker(); |
| | | inst.test() |
| | | for (let index = 0; index < 100; index++) { |
| | | console.log("主线ç¨"+index); |
| | | } |
| | | }, |
| | | async search() { |
| | | this.testSampleStatistics = null |
| | | this.supplierNoPassStatistics = null |
| | |
| | | const myChart2 = echarts.init(chartDom_unqualified_provider, null, { |
| | | height: 300 |
| | | }); |
| | | |
| | | const myChart3 = echarts.init(chartDom_unqualified_project, null, { |
| | | height: 268 |
| | | }); |
| | | window.addEventListener("resize",function(){ |
| | | myChart1.resize() |
| | | myChart2.resize() |
| | | myChart3.resize() |
| | | }) |
| | | this.m1 = myChart1 |
| | | this.m2 = myChart2 |
| | | this.m3 = myChart3 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export function test(){ |
| | | for (let index = 0; index < 100; index++) { |
| | | console.log("å线ç¨"+index); |
| | | } |
| | | } |