Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend

This commit is contained in:
姜棚 2021-11-24 19:05:21 +08:00
commit d31e118d7d
6 changed files with 39 additions and 8 deletions

View File

@ -32,6 +32,11 @@
display: flex;
align-items: center;
}
.dfleac{
display: flex;
justify-content: flex-start;
align-items: center;
}
.dflexs{
display: flex;
justify-content: flex-start;

View File

@ -260,6 +260,8 @@ export default class adduserinfo extends React.Component{
if(this.state.phone_nums>5){
Notify.clear();
Notify.error('添加的手机号码数量已经达到上限!');
num=5;
this.setState({phone_nums:num})
}else{
let contacts_email=[
{ type: "required", message: "请输入联系人手机号码"},
@ -271,14 +273,17 @@ export default class adduserinfo extends React.Component{
rules["phone"+ this.state.phone_nums] = contacts_email;
this.setState({rules:rules});
}
}
//添加邮箱
addEmailArr(){
let emilnum = this.state.email_nums + 1;
this.setState({email_nums:emilnum})
if(this.state.email_nums>5){
Notify.clear();
Notify.error('添加的联系人邮箱数量已经达到上限!');
emilnum=5;
}else{
let contacts_phone=[
{ type: "required", message: "请输入联系人邮箱"},
@ -290,6 +295,8 @@ export default class adduserinfo extends React.Component{
rules["email"+ this.state.email_nums] = contacts_phone;
this.setState({rules:rules});
}
this.setState({email_nums:emilnum})
console.log(this.state);
}
render(){
const companyOptions =this.state.companyList;
@ -404,7 +411,7 @@ export default class adduserinfo extends React.Component{
}}
onClearItem={(e)=>{
console.log(this.state.phone_nums);
let model2 = this.state.model;
model2.phone1 = "";
this.setState({model:model2})

View File

@ -106,7 +106,8 @@ export default class acclist extends React.Component{
page:1,
total:0,
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(){

View File

@ -255,7 +255,7 @@ export default class acclist extends React.Component{
getCodeListFn(time={},menu=null){
let _self=this;
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]){

View File

@ -1,7 +1,7 @@
import ReactDOM from 'react-dom';
import React, { Component } from 'react';
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 "../../../assets/comm.css"
import Ipt from "../../../components/input/main"
@ -14,6 +14,16 @@ import {getOrderList,getOrderExport,handelResponse,putOrderSuccess,putOrderCance
var moment = require("moment");
let day = moment(nowDay()).format("YYYY-MM-DD");
let tomonth = moment(nowMonth()).format("YYYY-MM-DD");
const options = [
{
key: '1',
text: '查询key',
},
{
key: '2',
text: '通用查询',
}
];
const Column = [
{
title: '订单号',
@ -434,7 +444,7 @@ componentDidUpdate(prevProps,prevState){
const { current, pageSize } = this.state;
return(
<div id="dislist">
<div id="dislist" className="orderList">
<TabPage tabs={this.state.tabList} slot={date}>
<p className="distable dflexj">
<p>
@ -442,9 +452,12 @@ componentDidUpdate(prevProps,prevState){
<Button type="danger" onClick={this.batchdelFn.bind(this)}>批量作废</Button> */}
<Button type="default" icon="download" onClick={this.exportFn.bind(this)}>导出订单</Button>
</p>
<div className="dfleac">
<Select width="120px" value={this.state.value1} onChange={this.onChange1} options={options} clearable placeholder="选择一项" />
{/* <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>
<Filterbar filterList={this.state.filterList} menuList={this.state.menuList}></Filterbar>
<div>

View File

@ -3,3 +3,8 @@
background: #f5f6f7;
border: none;
}
.orderList .zent-select-v2[data-zv="9.11.0"] {
margin-top: -8px;
margin-right: -35px;
}