Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend
This commit is contained in:
commit
d31e118d7d
|
@ -32,6 +32,11 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.dfleac{
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.dflexs{
|
.dflexs{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
|
@ -260,6 +260,8 @@ export default class adduserinfo extends React.Component{
|
||||||
if(this.state.phone_nums>5){
|
if(this.state.phone_nums>5){
|
||||||
Notify.clear();
|
Notify.clear();
|
||||||
Notify.error('添加的手机号码数量已经达到上限!');
|
Notify.error('添加的手机号码数量已经达到上限!');
|
||||||
|
num=5;
|
||||||
|
this.setState({phone_nums:num})
|
||||||
}else{
|
}else{
|
||||||
let contacts_email=[
|
let contacts_email=[
|
||||||
{ type: "required", message: "请输入联系人手机号码"},
|
{ type: "required", message: "请输入联系人手机号码"},
|
||||||
|
@ -271,14 +273,17 @@ export default class adduserinfo extends React.Component{
|
||||||
rules["phone"+ this.state.phone_nums] = contacts_email;
|
rules["phone"+ this.state.phone_nums] = contacts_email;
|
||||||
this.setState({rules:rules});
|
this.setState({rules:rules});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//添加邮箱
|
//添加邮箱
|
||||||
addEmailArr(){
|
addEmailArr(){
|
||||||
let emilnum = this.state.email_nums + 1;
|
let emilnum = this.state.email_nums + 1;
|
||||||
this.setState({email_nums:emilnum})
|
|
||||||
|
|
||||||
if(this.state.email_nums>5){
|
if(this.state.email_nums>5){
|
||||||
Notify.clear();
|
Notify.clear();
|
||||||
Notify.error('添加的联系人邮箱数量已经达到上限!');
|
Notify.error('添加的联系人邮箱数量已经达到上限!');
|
||||||
|
emilnum=5;
|
||||||
}else{
|
}else{
|
||||||
let contacts_phone=[
|
let contacts_phone=[
|
||||||
{ type: "required", message: "请输入联系人邮箱"},
|
{ type: "required", message: "请输入联系人邮箱"},
|
||||||
|
@ -290,6 +295,8 @@ export default class adduserinfo extends React.Component{
|
||||||
rules["email"+ this.state.email_nums] = contacts_phone;
|
rules["email"+ this.state.email_nums] = contacts_phone;
|
||||||
this.setState({rules:rules});
|
this.setState({rules:rules});
|
||||||
}
|
}
|
||||||
|
this.setState({email_nums:emilnum})
|
||||||
|
console.log(this.state);
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
const companyOptions =this.state.companyList;
|
const companyOptions =this.state.companyList;
|
||||||
|
@ -404,7 +411,7 @@ export default class adduserinfo extends React.Component{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
onClearItem={(e)=>{
|
onClearItem={(e)=>{
|
||||||
|
console.log(this.state.phone_nums);
|
||||||
let model2 = this.state.model;
|
let model2 = this.state.model;
|
||||||
model2.phone1 = "";
|
model2.phone1 = "";
|
||||||
this.setState({model:model2})
|
this.setState({model:model2})
|
||||||
|
|
|
@ -106,7 +106,8 @@ export default class acclist extends React.Component{
|
||||||
page:1,
|
page:1,
|
||||||
total:0,
|
total:0,
|
||||||
resellerList:[],
|
resellerList:[],
|
||||||
menuList:[{id:0,name:"分销商状态",check:false}]
|
menuList:[{id:0,name:"分销商状态",check:false}],
|
||||||
|
filterList:[{id:0,label:"分销商状态",menuList:[{id:0,name:"开启"},{id:1,name:"关闭"}]}],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clickFn(){
|
clickFn(){
|
||||||
|
|
|
@ -255,7 +255,7 @@ export default class acclist extends React.Component{
|
||||||
getCodeListFn(time={},menu=null){
|
getCodeListFn(time={},menu=null){
|
||||||
let _self=this;
|
let _self=this;
|
||||||
let {page,limit,key_word}=_self.state;
|
let {page,limit,key_word}=_self.state;
|
||||||
let data={key_batch_id:93,page,limit}
|
let data={page,limit}
|
||||||
|
|
||||||
|
|
||||||
if(this.state.combinedValue&&this.state.combinedValue[0]){
|
if(this.state.combinedValue&&this.state.combinedValue[0]){
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Button,Notify,Alert,CombinedDateRangePicker,Sweetalert,Icon} from 'zent';
|
import { Button,Notify,Select,Alert,CombinedDateRangePicker,Sweetalert,Icon} from 'zent';
|
||||||
import "./list.less"
|
import "./list.less"
|
||||||
import "../../../assets/comm.css"
|
import "../../../assets/comm.css"
|
||||||
import Ipt from "../../../components/input/main"
|
import Ipt from "../../../components/input/main"
|
||||||
|
@ -14,6 +14,16 @@ import {getOrderList,getOrderExport,handelResponse,putOrderSuccess,putOrderCance
|
||||||
var moment = require("moment");
|
var moment = require("moment");
|
||||||
let day = moment(nowDay()).format("YYYY-MM-DD");
|
let day = moment(nowDay()).format("YYYY-MM-DD");
|
||||||
let tomonth = moment(nowMonth()).format("YYYY-MM-DD");
|
let tomonth = moment(nowMonth()).format("YYYY-MM-DD");
|
||||||
|
const options = [
|
||||||
|
{
|
||||||
|
key: '1',
|
||||||
|
text: '查询key',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: '2',
|
||||||
|
text: '通用查询',
|
||||||
|
}
|
||||||
|
];
|
||||||
const Column = [
|
const Column = [
|
||||||
{
|
{
|
||||||
title: '订单号',
|
title: '订单号',
|
||||||
|
@ -434,7 +444,7 @@ componentDidUpdate(prevProps,prevState){
|
||||||
|
|
||||||
const { current, pageSize } = this.state;
|
const { current, pageSize } = this.state;
|
||||||
return(
|
return(
|
||||||
<div id="dislist">
|
<div id="dislist" className="orderList">
|
||||||
<TabPage tabs={this.state.tabList} slot={date}>
|
<TabPage tabs={this.state.tabList} slot={date}>
|
||||||
<p className="distable dflexj">
|
<p className="distable dflexj">
|
||||||
<p>
|
<p>
|
||||||
|
@ -442,9 +452,12 @@ componentDidUpdate(prevProps,prevState){
|
||||||
<Button type="danger" onClick={this.batchdelFn.bind(this)}>批量作废</Button> */}
|
<Button type="danger" onClick={this.batchdelFn.bind(this)}>批量作废</Button> */}
|
||||||
<Button type="default" icon="download" onClick={this.exportFn.bind(this)}>导出订单</Button>
|
<Button type="default" icon="download" onClick={this.exportFn.bind(this)}>导出订单</Button>
|
||||||
</p>
|
</p>
|
||||||
|
<div className="dfleac">
|
||||||
|
<Select width="120px" value={this.state.value1} onChange={this.onChange1} options={options} clearable placeholder="选择一项" />
|
||||||
{/* <Button type="info">批量操作</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={"请输入充值账号、key、分销商等关键字进行搜索"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/>
|
<Ipt labelWidth={0} 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={"请输入充值账号、key、分销商等关键字进行搜索"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/>
|
||||||
|
</div>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
|
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -3,3 +3,8 @@
|
||||||
background: #f5f6f7;
|
background: #f5f6f7;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.orderList .zent-select-v2[data-zv="9.11.0"] {
|
||||||
|
margin-top: -8px;
|
||||||
|
margin-right: -35px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue