From b4074d5604e243b019ef74ffd70c0c91bbc5f81e Mon Sep 17 00:00:00 2001 From: Apple <> Date: Tue, 11 Oct 2022 19:34:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E6=A8=A1=E6=9D=BF):?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E8=90=A5=E9=94=80=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=9D=83=E9=87=8D=E4=B8=BA?= =?UTF-8?q?999=EF=BC=8C=E6=96=B0=E5=A2=9E=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87=E3=80=81=E8=83=8C=E6=99=AF=E5=9B=BE?= =?UTF-8?q?=E3=80=81=E6=90=9C=E7=B4=A2=E6=A0=8F=E3=80=81=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E6=A0=8F=E3=80=81=E6=A0=87=E9=A2=98=EF=BC=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=9C=AA=E4=BC=A0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangepage/edittemplate/main.js | 2 -- src/pages/system/systemMould/main.js | 20 +++++++------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 92c537df..d41b02cc 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -298,7 +298,6 @@ export default class edittemplate extends React.Component { this.setState({ pagedisable: true }) } } else {//新增数据 - console.log(369, sessionStorage.getItem('editorConfig')); let obj = {}, whiteList = {}, exchangeList = {}, coupon = {} let sourceObj = {//模板数据结构 land: model, @@ -374,7 +373,6 @@ export default class edittemplate extends React.Component { } if (mouldType == 0) { //系统模板新增 - formdata.title=exchangeStateData.systemTitle; formdata.sort = exchangeStateData.model.sort; formdata.type_id = exchangeStateData.model.type_id.key; let infoExchange = {} diff --git a/src/pages/system/systemMould/main.js b/src/pages/system/systemMould/main.js index b198fbfe..81713bd7 100644 --- a/src/pages/system/systemMould/main.js +++ b/src/pages/system/systemMould/main.js @@ -165,6 +165,7 @@ pageChange(e){ newTemplate(e){ sessionStorage.setItem("mouldType",0) sessionStorage.removeItem('pageInfo'); + sessionStorage.removeItem('editorConfig'); // let link = window.location.href.replace(window.location.hash, "#/edittemplate"); // window.open(link, "_blank") window.location.href= "/#/edittemplate" @@ -217,12 +218,8 @@ delFn(e,row){
- < - Button type = "primary" - icon = "plus" - onClick={(e)=>{ this.newTemplate(e) }} - - > 新增模板 < /Button> + {/* */} {this.setState({key_word:''})}} wordSearch={this.sureFn.bind(this)} onChange={(e)=>this.setState({key_word:e})} value={this.state.key_word} icon="search" placeholder={"请输入关键字进行匹配查询"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/>
@@ -267,16 +264,13 @@ delFn(e,row){ if (com == "edit") { return - < - a - className = "grid-link" onClick={(e)=>{ + { this.editFn(e,rowData) - }} > 编辑 < /a> < + }} > 编辑 < a onClick={(e)=>{this.delFn(e,rowData)}} - className = "grid-link" > 删除 < /a> + className = "grid-link" > 删除 - < - /span> + } }} />