fix api call result & some UI improve
This commit is contained in:
@@ -11,7 +11,10 @@ export default {
|
||||
name: 'DomainSelect',
|
||||
props: {
|
||||
name: String,
|
||||
type: String
|
||||
type: String,
|
||||
filterInitRowsFunc: {
|
||||
type: Function,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const columns = [
|
||||
@@ -26,6 +29,9 @@ export default {
|
||||
api.get(`api/domains`).then(res =>{
|
||||
res.data.data.forEach((item) =>
|
||||
{
|
||||
if (props.filterInitRowsFunc && !props.filterInitRowsFunc(item)) {
|
||||
return;
|
||||
}
|
||||
rows.push({id:item.id,tenantid:item.tenantid,name:item.name,url:item.url,kintoneuser:item.kintoneuser});
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user