Commit 0c2552da by zhangleyuan

feat:删除多余的文件

parent 39d9230d
/*
* @Author: zhangleyuan
* @Date: 2021-03-01 15:33:02
* @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-01 15:35:09
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -28,7 +28,7 @@ class RelatedPlanModal extends React.Component {
const params ={
...query,
size,
roleCodes:['CloudOperator']
storeId:User.getStoreId()
}
PlanService.getStorePlanAll(params).then((res) => {
const { result = {} } = res ;
......@@ -40,15 +40,7 @@ class RelatedPlanModal extends React.Component {
});
}
handleChangePlanName = (value)=>{
const isPhone = (value || '').match(/^\d+$/);
const { query } = this.state;
if(isPhone){
query.phone = value;
query.nickName = null;
}else{
query.nickName = value;
query.phone = null;
}
query.planName = value;
query.current = 1;
this.setState({
query
......@@ -68,14 +60,9 @@ class RelatedPlanModal extends React.Component {
parseColumns = () => {
const columns = [
{
title: '姓名',
key: 'nickName',
dataIndex: 'nickName'
},
{
title: '手机号',
key: 'phone',
dataIndex: 'phone'
title: '培训计划',
key: 'planName',
dataIndex: 'planName'
}
];
return columns;
......@@ -101,7 +88,7 @@ class RelatedPlanModal extends React.Component {
</div>
<div>
<Table
rowKey={record => record.id}
rowKey={record => record.planId}
dataSource={dataSource}
columns={this.parseColumns()}
pagination={false}
......@@ -129,4 +116,4 @@ class RelatedPlanModal extends React.Component {
}
}
export default SelectOperatorModal;
\ No newline at end of file
export default RelatedPlanModal;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment