7489-testToMaster #2515
|
@ -115,6 +115,9 @@
|
||||||
},
|
},
|
||||||
"Operator": {
|
"Operator": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"locker": {
|
||||||
|
"dataSource": "vn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
"name": "locker",
|
||||||
|
"description": "Employee´s locker",
|
||||||
|
"base": "Loggable",
|
||||||
|
"options": {
|
||||||
|
"mysql": {
|
||||||
|
"table": "locker"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"gender": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"workerFk": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relations": {
|
||||||
|
"id": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "worker",
|
||||||
|
"foreignKey": "workerFk"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -75,11 +75,10 @@
|
||||||
ng-model="$ctrl.worker.SSN"
|
ng-model="$ctrl.worker.SSN"
|
||||||
rule>
|
rule>
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
<vn-input-number
|
<vn-autocomplete
|
||||||
min="0"
|
|
||||||
label="Locker"
|
label="Locker"
|
||||||
ng-model="$ctrl.worker.locker">
|
ng-model="$ctrl.worker.locker"></vn-autocomplete>
|
||||||
</vn-input-number>
|
<!-- ng-click="ctrl.choose"> -->
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
|
@ -13,6 +13,11 @@ class Controller extends Section {
|
||||||
return this.$.watcher.submit()
|
return this.$.watcher.submit()
|
||||||
.then(() => this.card.reload());
|
.then(() => this.card.reload());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chooseLocker() {
|
||||||
|
const workerGender = this.worker.sex;
|
||||||
|
console.log(workerGender);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngModule.vnComponent('vnWorkerBasicData', {
|
ngModule.vnComponent('vnWorkerBasicData', {
|
||||||
|
|
Loading…
Reference in New Issue