From 2652a3c1485dbbf3b003e13e5c5d1c0205e7c324 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 九月 2020 09:19:46 +0800 Subject: [PATCH] 2020-09-09 --- src/tabviews/subtable/index.jsx | 32 +++----------------------------- 1 files changed, 3 insertions(+), 29 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index ff9948e..982e15b 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -9,6 +9,7 @@ import enUS from '@/locales/en-US/main.js' import Utils from '@/utils/utils.js' import UtilsDM from '@/utils/utils-datamanage.js' +import UtilsUpdate from '@/utils/utils-update.js' import { modifyTabview } from '@/store/action' import SubSearch from '@/tabviews/zshare/topSearch' @@ -145,35 +146,8 @@ let _hideCol = [] // 闅愯棌鍙婂悎骞跺垪涓瓧娈电殑uuid闆� let colMap = new Map() - // 鏃х増鏈吋瀹� - if (!config.version || config.version < '1.0') { - // 鍏煎鍥捐〃 - if (!config.charts) { - config.expand = true - config.charts = [{ uuid: Utils.getuuid(), label: '', title: '', chartType: 'table', icon: 'table', Hide: 'false', blacklist: [] }] - } else { - config.charts.forEach(card => { - if (card.chartType === 'card') { - card.details = card.details.map(_cell => { - _cell.fontSize = _cell.fontSize || 14 - if (!_cell.width) { - _cell.width = 100 - } else if (_cell.width === 'helf') { - _cell.width = 50 - } else if (_cell.width === 'third') { - _cell.width = 33 - } - if (!_cell.fontWeight && _cell.bold === 'true') { - _cell.fontWeight = 'normal' - } - _cell.height = _cell.height || 1 - - return _cell - }) - } - }) - } - } + // 鐗堟湰鍏煎 + config = UtilsUpdate.updateSubTable(config) // 鏉冮檺杩囨护 if (this.props.menuType !== 'HS') { -- Gitblit v1.8.0