fix(系统模板):修复新增营销模板,修改权重为999,新增优惠券的图片、背景图、搜索栏、底部栏、标题,保存时,前端未传相关值
This commit is contained in:
parent
6109e4809c
commit
b4074d5604
|
@ -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 = {}
|
||||
|
|
|
@ -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){
|
|||
<div id="exchangecodelist">
|
||||
<TabPage tabs={this.state.tabList}>
|
||||
<div className="codetable dflexj">
|
||||
<
|
||||
Button type = "primary"
|
||||
icon = "plus"
|
||||
onClick={(e)=>{ this.newTemplate(e) }}
|
||||
|
||||
> 新增模板 < /Button>
|
||||
<Button type = "primary"icon = "plus"
|
||||
onClick={(e)=>{ this.newTemplate(e) }}> 新增模板 </Button>
|
||||
{/* <Button type="info">批量操作</Button> */}
|
||||
<Ipt onClearItem={(e)=>{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'}/>
|
||||
</div>
|
||||
|
@ -267,16 +264,13 @@ delFn(e,row){
|
|||
|
||||
if (com == "edit") {
|
||||
return <span >
|
||||
<
|
||||
a
|
||||
className = "grid-link" onClick={(e)=>{
|
||||
<a className = "grid-link" onClick={(e)=>{
|
||||
this.editFn(e,rowData)
|
||||
}} > 编辑 < /a> <
|
||||
}} > 编辑 </a> <
|
||||
a onClick={(e)=>{this.delFn(e,rowData)}}
|
||||
className = "grid-link" > 删除 < /a>
|
||||
className = "grid-link" > 删除 </a>
|
||||
|
||||
<
|
||||
/span>
|
||||
</span>
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue