diff --git a/src/assets/api.js b/src/assets/api.js
index 3c7d01bb..fe25f43b 100644
--- a/src/assets/api.js
+++ b/src/assets/api.js
@@ -147,6 +147,13 @@ export const planSend = (id, params) => {
return req('put', baseurl + "/plan/send/" + id, params)
}
+//重新修改手机号邮箱
+export const planReceive = (id, params) => {
+ return req('put', baseurl + "/plan/receive/" + id, params)
+}
+
+
+
//重新发送key批次压缩包和压缩包密码
export const planResend = (id, params) => {
return req('put', baseurl + "/plan/resend/" + id, params)
diff --git a/src/assets/enum.js b/src/assets/enum.js
index f3943e3e..6a786b37 100644
--- a/src/assets/enum.js
+++ b/src/assets/enum.js
@@ -6,7 +6,7 @@ const menu={
case 1:return '进行中';break;
case -1:return '暂停';break;
case 2:return '已结束';break;
- case 3:return '已作废';break;
+ case 5:return '已作废';break;
}
},
exchangeStatusBg(params) {
@@ -15,7 +15,7 @@ const menu={
case 1:return '#3575C7';break;
case -1:return '#F6C041';break;
case 2:return '#43A65D';break;
- case 3:return '#DC4F40';break;
+ case 5:return '#DC4F40';break;
}
},
//订单状态
diff --git a/src/components/filterSelect/main.js b/src/components/filterSelect/main.js
index bcd90364..c5642a17 100644
--- a/src/components/filterSelect/main.js
+++ b/src/components/filterSelect/main.js
@@ -33,6 +33,7 @@ import Menu from "../menu/main.js"
this.setState({selectedMenu:seleted})
this.setState({text:seleted.name})
this.setState({menuShow:false})
+ this.props.onSelect()
//点击选择菜单
console.log(888,id);
}
diff --git a/src/components/filterbar/main.js b/src/components/filterbar/main.js
index 32a40bc8..ff266513 100644
--- a/src/components/filterbar/main.js
+++ b/src/components/filterbar/main.js
@@ -54,7 +54,13 @@ import FilterSelect from "../filterSelect/main.js"
}
this.setState({showItemList:this.state.showItemList})
}
-
+
+ onSelect(e){
+ console.log(111111)
+ this.props.onSelect(e)
+
+ }
+
//隐藏菜单
hideMenu (e,id) {
this.setState({menuShow:false})
@@ -67,7 +73,7 @@ import FilterSelect from "../filterSelect/main.js"
{
this.state.showItemList.map((item,index)=>{
return(
- {this.onCloseSelect(e,id)}} key={index}>
+ {this.onCloseSelect(e,id)}} onSelect={(e)=>{this.onSelect(e)}} key={index}>
)
})
diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js
index 6d5a5f26..58e6ad66 100644
--- a/src/pages/exchangecode/list/list.js
+++ b/src/pages/exchangecode/list/list.js
@@ -118,6 +118,7 @@ export default class acclist extends React.Component{
key_word:'',
status:0,
tableHeight:600,
+ tabIndex:0,
}
}
clickFn(){
@@ -169,7 +170,7 @@ export default class acclist extends React.Component{
sessionStorage.setItem('breaknav',JSON.stringify(activerou));
}
tabFn(index){
-
+ this.setState({tabIndex:index})
this.getCodeListFn({},index);
}
//page
@@ -368,7 +369,7 @@ componentDidUpdate(prevProps,prevState){
}
if(com == "switch")
{
- return this.changestatus(e,rowData)}>;
+ return this.changestatus(e,rowData)} disabled={rowData.status == 4 ||rowData.status == 5 } >;
}
if(com == "status")
{
@@ -378,10 +379,10 @@ componentDidUpdate(prevProps,prevState){
{
return
{
- rowData.status!=2|| rowData.status!=3?this.editinfo(e,rowData)}>编辑:null
+ rowData.status!=4 && rowData.status!=5?this.editinfo(e,rowData)}>编辑:编辑
}
{
- rowData.status!=2|| rowData.status!=3? this.delFn(e,rowData)} >作废:null
+ rowData.status!=4 && rowData.status!=5? this.delFn(e,rowData)} >作废:作废
}
{/* 复制 */}
diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js
index c1c24083..178f2f89 100644
--- a/src/pages/plan/add/step2.js
+++ b/src/pages/plan/add/step2.js
@@ -318,6 +318,7 @@ export default class acclist extends React.Component{
quantity: [
{ type: "required", message: "请输入key数量"},
+ { type: "regExp", message: "请输入正整数",reg:"^([1-9][0-9]*){1,3}$"},
],
bind_object: [
diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js
index 73467b1e..81821d31 100644
--- a/src/pages/plan/list/list.js
+++ b/src/pages/plan/list/list.js
@@ -9,7 +9,7 @@ import Ipt from "../../../components/input/main"
import Grid from "../../../components/gird/main.js"
import TabPage from "../../../components/tabPage/main.js"
import Filterbar from "../../../components/filterbar/main.js"
-import {getPlanList,handelResponse,startOrStopPlan,getAllEnum,resKeyEmail,planSend,putKeyEmail} from "../../../assets/api.js"
+import {getPlanList,handelResponse,startOrStopPlan,getAllEnum,resKeyEmail,planSend,planResend,planReceive} from "../../../assets/api.js"
import _ from "lodash";
import menu from "../../../assets/enum.js"
const PAGE_SIZE_OPTIONS = [10, 20, 30];
@@ -24,7 +24,7 @@ export default class acclist extends React.Component{
limit:10,
tabList:[{title:"营销计划列表"}],
distdata:[{title:'士大夫大师傅'}],
- filterList:[{id:0,label:"状态",menuList:[{id:0,name:"创建中"},{id:1,name:"审核中"},{id:2,name:"生效中"},{id:3,name:"暂停中"},{id:4,name:"已失效"},{id:5,name:"待生效"}]},
+ filterList:[{id:0,label:"状态",menuList:[{id:0,name:"草稿"},{id:1,name:"审核中"},{id:2,name:"生效中"},{id:3,name:"暂停中"},{id:4,name:"已失效"},{id:5,name:"待生效"}]},
],
menuList:[{id:0,name:"状态",check:false}]
}
@@ -142,7 +142,7 @@ export default class acclist extends React.Component{
"type":"sms"
}
- resKeyEmail(row.id,data).then((res)=>{
+ planResend(row.id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("更改状态成功")
@@ -158,7 +158,7 @@ export default class acclist extends React.Component{
"type":"email"
}
- resKeyEmail(row.id,data).then((res)=>{
+ planResend(row.id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("更改状态成功")
@@ -197,7 +197,7 @@ export default class acclist extends React.Component{
}
- putKeyEmail(plan_id,data).then((res)=>{
+ planReceive(plan_id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("发送成功")
this.closeDialog(1)
@@ -241,7 +241,7 @@ export default class acclist extends React.Component{
}
console.log(phone)
- putKeyEmail(plan_id,data).then((res)=>{
+ planReceive(plan_id,data).then((res)=>{
handelResponse(res,(req,msg)=>{
Notify.success("发送成功")
this.closeDialog(1)
@@ -260,7 +260,9 @@ export default class acclist extends React.Component{
});
}
}
-
+ onFilter(e){
+ console.log(e)
+ }
render(){
const { current, pageSize } = this.state;
@@ -359,7 +361,7 @@ export default class acclist extends React.Component{
{/* */}
-
+ {this.onFilter(e)}}>
{this.onSwitchChange(e,rowData)}}>;
+ return {this.onSwitchChange(e,rowData)}}>;
}
if(com == "status")
{