接口测试

This commit is contained in:
Chengliang 2023-08-11 10:15:56 +08:00
parent de6a309f42
commit 67947182fd
2 changed files with 8 additions and 2 deletions

View File

@ -133,8 +133,8 @@ export default class QuickSearch extends React.Component {
const { quickSearch } = this.props;
let { quickSearchData } = quickSearch;
let datas = quickSearchData.datas;
if(datas.length>=6){
message.error(getLabel('387795',"最多只能添加6项"));
if(datas.length>=8){
message.error(getLabel('387795',"最多只能添加8项"));
return;
}
let time = new Date().getTime();

View File

@ -34,6 +34,11 @@ export default class QuickSearchDetail extends React.Component {
quickSearch.quickSearchDetailVisable = false;
}
onChange = (data) => {
const { quickSearch } = this.props;
quickSearch.setQuickSearchDetailData(data);
}
getSearchButton = () => {
const { quickSearch } = this.props;
const buttons = new Array();
@ -258,6 +263,7 @@ class QuickSearchTableEdit extends React.Component{
}
typeof this.props.onChange === 'function' && this.props.onChange(_datas);
}
render() {
const { datas, rowSelection } = this.props;
return (