diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue index 3437a80..2754b88 100644 --- a/src/views/kanban/quality/kanban1.vue +++ b/src/views/kanban/quality/kanban1.vue @@ -181,7 +181,7 @@
-
+
不良类型占比
导出 - - + + + + + @@ -79,20 +82,32 @@ export default { legendData: [], seriesData: [], legendDatas: [], - seriesDatas: [] + seriesDatas: [], + columns: [ + { key: 0, label: `类别`, visible: false }, + ], }; }, - created() { + }, + watch: { + 'columns[0].visible'(newVal) { + this.$nextTick(() => { + this.$refs.table?.doLayout() + }) + } }, mounted() { // Set current month initially const currentMonth = new Date().toISOString().substr(0, 7); this.queryParams.monthValue = currentMonth; this.getList(); + }, + methods: { + pad(number) { return number.toString().padStart(2, '0'); }, @@ -375,6 +390,7 @@ export default {