Browse Source

处理avue crud组件错行问题

ljb 8 months ago
parent
commit
b3a518ee7e

+ 7 - 0
src/mixins/crud.js

@@ -55,6 +55,13 @@ export default (app, option = {}) => {
         return this.option.rowKey || option.rowKey || 'id'
       }
     },
+    activated() {
+      if (this.$refs.crud) {
+        this.$nextTick(() => {
+          this.$refs.crud.doLayout();
+        });
+      }
+    },
     methods: {
       getList() {
         this.loadData();

+ 1 - 1
src/option/yfCostManage/yfCostStatistics/amortizeCostSummaryList.js

@@ -19,7 +19,7 @@ export default {
       label: '月份',
       prop: 'yearAndMonth',
       span: 24,
-      width: 60,
+      width: 65,
       align: 'center',
       showOverflowTooltip: true,
     },