diff --git a/src/pages/exchangecode/addruleform/addruleform.js b/src/pages/exchangecode/addruleform/addruleform.js index 6a03ff08..9324e42f 100644 --- a/src/pages/exchangecode/addruleform/addruleform.js +++ b/src/pages/exchangecode/addruleform/addruleform.js @@ -65,7 +65,7 @@ function Addruleform(){ ]; const distdata=[{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111},{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111},{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111},{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111},{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111},{id:123321,goodsname:'爱奇艺月卡',price:134,contract:45,official:'30.00',stock:111}] return( -
+
{ this.pageChange(e) }} diff --git a/src/pages/order/more/more.less b/src/pages/order/more/more.less index 62059e91..c2a03f2b 100644 --- a/src/pages/order/more/more.less +++ b/src/pages/order/more/more.less @@ -1,16 +1,19 @@ #more{ + .main-body{ padding: 24px; box-sizing: border-box; + li{ width: 40%; list-style-type: none; display: flex; justify-content: space-between; line-height: 42px; + font-size: 14px; span{ color:#626366; - font-size: 14px; + // font-size: 14px; } font{ color:#313233; diff --git a/src/pages/order/orderaddform/orderaddform.js b/src/pages/order/orderaddform/orderaddform.js index 637199c0..67129a45 100644 --- a/src/pages/order/orderaddform/orderaddform.js +++ b/src/pages/order/orderaddform/orderaddform.js @@ -82,6 +82,25 @@ export default class adduserinfo extends React.Component{ key: '2', text: 'Option 2', }, + { + key: '3', + text: 'Option 3', + disabled: true, + }, + { + key: '4', + text: `君不见,黄河之水天上来,奔流到海不复回`, + }, + ]; + const plans = [ + { + key: '1', + text: 'Option 1', + }, + { + key: '2', + text: 'Option 2', + }, { key: '3', text: 'Option 3', @@ -131,7 +150,7 @@ export default class adduserinfo extends React.Component{
- { this.onsignChange(e) Bus.emit('change',"plan" ,e); }} popupWidth="360px" width="520px"/> @@ -250,7 +269,7 @@ export default class adduserinfo extends React.Component{ type="textarea" value={this.state.model.tip} onChange={this.handleMaxCharacterChange} - maxCharacterCount={10} + maxCharacterCount={100} showCount autoSize width="520px" diff --git a/src/pages/system/account/list/list.js b/src/pages/system/account/list/list.js index 96e74593..72000ad8 100644 --- a/src/pages/system/account/list/list.js +++ b/src/pages/system/account/list/list.js @@ -8,6 +8,7 @@ import "../../../../assets/comm.css" import Grid from "../../../../components/gird/main.js" import Ipt from "../../../../components/input/main" import Modifypwd from "./modifypwd" +import _ from "lodash"; const Column = [ { title: '用户名', @@ -144,11 +145,7 @@ export default class acclist extends React.Component{ ,time:'2021-00-04 13:48:45',post:'技术',opearo:'红噔噔'}] } } - handleChangeSmall(e,rowData) { - // this.setState({ checkedSmall: checked }); - console.log(rowData); - rowData.status=!rowData.status; - }; + clickFn(){ this.props.history.push('/system/account-add'); sessionStorage.setItem('pathname2','/system/account-add') @@ -174,6 +171,27 @@ export default class acclist extends React.Component{ onCancel = () => { Notify.error('我真的取消了'); } + onSwitchChange(status,row){ + let self = this; + Sweetalert.confirm({ + type:'warning', + closeBtn:true, + title:'确认操作', + content:

是否改变当前数据状态?

, + onConfirm:()=>{ this.changeState(status,row)}, + onCancel: this.onCancel, + className:'questModal', + parentComponent: this + }); + } + + changeState(status,row){ + let self = this; + let id = _.findIndex(self.state.accoutdata,(o)=>{return o.id == row.id}); + self.state.accoutdata[id].status = status; + self.setState({accoutdata:self.state.accoutdata}) + } + //表单删除 delFn(e,row){ Sweetalert.confirm({ @@ -250,7 +268,7 @@ export default class acclist extends React.Component{ ComponentHandler={(com,rowData)=>{ if(com == "status") { - return this.handleChangeSmall(e,rowData)}>; + return {this.onSwitchChange(e,rowData)}}>; } if(com == "opearo")