We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
formSelects.config('parentMenu_select', { // 转换数据格式 beforeSuccess: function(id, url, searchVal, result){ //我要把数据外层的code, msg, data去掉 result = result.data; //我要反转name covertData(result); //然后返回数据 return result; } }).data('parentMenu_select', 'server', { url: setter.requestUrl+'menu/menuTree?token='+layui.data(setter.tableName)[setter.request.tokenName], response: { statusCode: 200, } });
第二次打开界面的时候会出现
The text was updated successfully, but these errors were encountered:
你应该是在html写死了这个下拉搜索的内容,实际没有用formselect,所以会报这个warning
Sorry, something went wrong.
No branches or pull requests
formSelects.config('parentMenu_select', {
// 转换数据格式
beforeSuccess: function(id, url, searchVal, result){
//我要把数据外层的code, msg, data去掉
result = result.data;
//我要反转name
covertData(result);
//然后返回数据
return result;
}
}).data('parentMenu_select', 'server', {
url: setter.requestUrl+'menu/menuTree?token='+layui.data(setter.tableName)[setter.request.tokenName],
response: {
statusCode: 200,
}
});
第二次打开界面的时候会出现
The text was updated successfully, but these errors were encountered: