From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/templates/sharecomponent/chartgroupcomponent/index.jsx | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx index 7dd78e8..dcb8f2d 100644 --- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx +++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx @@ -5,8 +5,6 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons' import Utils from '@/utils/utils.js' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' import { getChartViewForm } from '@/templates/zshare/formconfig' import ChartForm from './chartform' @@ -22,7 +20,6 @@ } state = { - dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, chartlist: null, // 鍥捐〃闆� card: null, // 缂栬緫涓厓绱� formlist: null, // 琛ㄥ崟淇℃伅 @@ -206,11 +203,10 @@ */ deletechart = (plot) => { const { config } = this.props - const { dict } = this.state let _this = this confirm({ - content: dict['model.confirm'] + dict['model.delete'] + ` ${plot.title} 锛焋, + content: `纭畾鍒犻櫎 ${plot.title} 锛焋, onOk() { let _chartlist = fromJS(_this.state.chartlist).toJS() let _chartview = _this.state.chartview @@ -254,9 +250,10 @@ } } + // 宸插純鐢紝涓嶅湪寮�鏀炬坊鍔犻�氶亾 render() { const { config } = this.props - const { dict, chartlist, modaltype, card, chartview } = this.state + const { chartlist, modaltype, card, chartview } = this.state return ( <div className="model-table-chartview-list"> @@ -282,7 +279,6 @@ destroyOnClose > <ChartForm - dict={dict} card={card} formlist={this.state.formlist} inputSubmit={this.submitChart} -- Gitblit v1.8.0