This commit is contained in:
parent
f956b0ed79
commit
f086d82f87
|
@ -31,22 +31,3 @@ function buling (num) {
|
|||
}
|
||||
}
|
||||
|
||||
const common ={
|
||||
translateStar (str,start,end) {
|
||||
|
||||
let translate_str = ""
|
||||
for(let i = 0;i < str.length;i++)
|
||||
{
|
||||
console.log(str[i])
|
||||
if(i >= start && i < end)
|
||||
{
|
||||
translate_str += "*"
|
||||
}
|
||||
else{
|
||||
translate_str += str[i]
|
||||
}
|
||||
}
|
||||
return translate_str;
|
||||
}
|
||||
}
|
||||
export default common;
|
|
@ -11,7 +11,7 @@ import Filterbar from "../../../../components/filterbar/main.js"
|
|||
import {planIsSend,getPlanList,handelResponse,startOrStopPlan,getAllEnum,resKeyEmail,planSend,planResend,planReceive,getReseller,getkeyDetailList} from "../../../../assets/api.js"
|
||||
import _ from "lodash";
|
||||
import menu from "../../../../assets/enum.js"
|
||||
import common from "../../../../assets/comm.js"
|
||||
|
||||
const PAGE_SIZE_OPTIONS = [10, 20, 30];
|
||||
// <Button onClick={this.clickFn.bind(this)}>批量作废</Button>
|
||||
// <Button onClick={this.clickFn.bind(this)}>批量标记已使用</Button>
|
||||
|
@ -290,11 +290,6 @@ export default class acclist extends React.Component{
|
|||
}
|
||||
checkChange ={this.selection.bind(this)}
|
||||
ComponentHandler={(com,rowData)=>{
|
||||
if(com == "key")
|
||||
{
|
||||
let str = common.translateStar(rowData,4,7)
|
||||
return <span>{str}</span>
|
||||
}
|
||||
|
||||
if(com == "dates")
|
||||
{
|
||||
|
@ -311,7 +306,6 @@ export default class acclist extends React.Component{
|
|||
}
|
||||
if(com == "status")
|
||||
{
|
||||
|
||||
return <p className="dflexa" ><span><font className="icon" style={{background:menu.planStatusBg(parseInt(rowData.status))}}></font>{rowData.status_text}</span></p>
|
||||
}
|
||||
if(com == "opearo")
|
||||
|
|
|
@ -498,7 +498,7 @@ linkTo(row){
|
|||
{path:'/home/key-list',name:row.plan_title+'key列表'},
|
||||
{path:'/home/key-detail',name:row.batch_name+'key码列表'}
|
||||
]}]
|
||||
sessionStorage.setItem("plan_item",JSON.stringify(row))
|
||||
// sessionStorage.setItem("plan_item",JSON.stringify(row))
|
||||
sessionStorage.setItem('breakchangenav',JSON.stringify(arr));
|
||||
sessionStorage.setItem('linkshowname',"营销计划管理");
|
||||
sessionStorage.setItem("key_batch_id",row.id)
|
||||
|
|
|
@ -301,6 +301,8 @@ export default class acclist extends React.Component{
|
|||
}
|
||||
menuItemClick(e,key,row){
|
||||
|
||||
this.setState({plan_id:row.id})
|
||||
|
||||
if(row.status ==6 ||row.status == 0 )
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue