fixed samples visible scope
This commit is contained in:
parent
08650a177e
commit
4fe4c7886b
|
@ -2,9 +2,9 @@
|
|||
"name": "Sample",
|
||||
"base": "VnModel",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "sample"
|
||||
}
|
||||
"mysql": {
|
||||
"table": "sample"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"id": {
|
||||
|
@ -19,14 +19,16 @@
|
|||
"type": "String"
|
||||
},
|
||||
"isVisible": {
|
||||
"type": "Number"
|
||||
"type": "Boolean"
|
||||
},
|
||||
"hasCompany": {
|
||||
"type": "Number"
|
||||
}
|
||||
},
|
||||
"scope": {
|
||||
"where": {"isVisible": 1}
|
||||
"scopes": {
|
||||
"visible": {
|
||||
"where": {"isVisible": true}
|
||||
}
|
||||
},
|
||||
"acls": [
|
||||
{
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
field="$ctrl.clientSample.typeFk"
|
||||
model="ClientSample.typeFk"
|
||||
fields="['code','hasCompany']"
|
||||
url="/client/api/Samples"
|
||||
url="/client/api/Samples/visible"
|
||||
show-field="description"
|
||||
value-field="id"
|
||||
label="Sample">
|
||||
|
|
Loading…
Reference in New Issue