Fix stage geometry URL
This commit is contained in:
parent
b2c6c93284
commit
157eb28053
1 changed files with 74 additions and 72 deletions
|
|
@ -14,7 +14,10 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button type="submit" class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1">
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin-small uk-width-1-1"
|
||||||
|
>
|
||||||
Change stage type
|
Change stage type
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -28,7 +31,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import taskSubmitter from "../../genericComponents/taskSubmitter";
|
import taskSubmitter from "../../genericComponents/taskSubmitter";
|
||||||
|
|
||||||
|
|
@ -41,14 +43,14 @@ export default {
|
||||||
|
|
||||||
data: function() {
|
data: function() {
|
||||||
return {
|
return {
|
||||||
stageType: "MissingStage",
|
stageType: "MissingStage"
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
stageTypeUri: function() {
|
stageTypeUri: function() {
|
||||||
return `${this.$store.getters.baseUri}/api/v2/properties/stage/type`;
|
return `${this.$store.getters.baseUri}/api/v2/instrument/stage/type`;
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -57,7 +59,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getStageType: function() {
|
getStageType: function() {
|
||||||
console.log("Getting stage type")
|
console.log("Getting stage type");
|
||||||
axios
|
axios
|
||||||
.get(this.stageTypeUri)
|
.get(this.stageTypeUri)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
@ -69,7 +71,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
setStageType: function() {
|
setStageType: function() {
|
||||||
console.log("Setting stage type")
|
console.log("Setting stage type");
|
||||||
axios
|
axios
|
||||||
.put(this.stageTypeUri, this.stageType)
|
.put(this.stageTypeUri, this.stageType)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
@ -82,7 +84,7 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less"></style>
|
<style lang="less"></style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue