Commit 60b71b21 authored by Babin Egor's avatar Babin Egor

update form

parent ec89d1f1
...@@ -183,7 +183,7 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -183,7 +183,7 @@ Vue.component('app-waste-utilisation-order-form', {
}, },
computed: { computed: {
wasteGroupUrl() { wasteGroupUrl() {
return 'https://r52.ru/api/type/' + this.localRecord.wType.name return '/api/type/' + this.localRecord.wType.name + (this.localRecord.wMainGroup.value ? "/" + this.localRecord.wMainGroup.value : "/");
}, },
wasteMainGroupUrl(){ wasteMainGroupUrl(){
return 'https://r52.ru/api/mainType/' + this.localRecord.wType.name return 'https://r52.ru/api/mainType/' + this.localRecord.wType.name
...@@ -377,7 +377,7 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -377,7 +377,7 @@ Vue.component('app-waste-utilisation-order-form', {
}) })
}, },
dateFromMainGroup() { dateFromMainGroup() {
this.wasteGroupsLoad();
}, },
dateFromGroup() { dateFromGroup() {
axios axios
...@@ -515,7 +515,8 @@ Vue.component('app-waste-utilisation-order-form', { ...@@ -515,7 +515,8 @@ Vue.component('app-waste-utilisation-order-form', {
</waste-filter> </waste-filter>
</div> </div>
<!-- Debug ---> <!-- Debug --->
<div style="position: absolute; right: -130px;top: 0px; background-color:#fff; z-index:1000; width: 400px; height: 1000px; padding: 10px; border: 1px solid #999;"> <div class="debug"
style="display: none; position: absolute; right: -130px;top: 0px; background-color:#fff; z-index:1000; width: 400px; height: 1000px; padding: 10px; border: 1px solid #999;">
<pre> <pre>
{{ localRecord }} {{ localRecord }}
</pre> </pre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment