mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-05 22:20:17 +08:00
FIx hound [SCI-11754]
This commit is contained in:
parent
063fdad81e
commit
10a94c54ba
3 changed files with 7 additions and 6 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
/* global HelperModule */
|
||||||
import axios from '../../../packs/custom_axios.js';
|
import axios from '../../../packs/custom_axios.js';
|
||||||
import modalMixin from '../../shared/modal_mixin.js';
|
import modalMixin from '../../shared/modal_mixin.js';
|
||||||
import SelectDropdown from '../../shared/select_dropdown.vue';
|
import SelectDropdown from '../../shared/select_dropdown.vue';
|
||||||
|
|
@ -102,7 +103,7 @@ export default {
|
||||||
this.submitting = true;
|
this.submitting = true;
|
||||||
axios.post(this.protocol.attributes.urls.add_protocol_steps_url, {
|
axios.post(this.protocol.attributes.urls.add_protocol_steps_url, {
|
||||||
selected_protocol: this.selectedProtocol,
|
selected_protocol: this.selectedProtocol,
|
||||||
steps: this.selectedSteps,
|
steps: this.selectedSteps
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
this.submitting = false;
|
this.submitting = false;
|
||||||
this.$emit('confirm', data.data.data);
|
this.$emit('confirm', data.data.data);
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DeleteStepsModals from './modals/delete_steps';
|
import DeleteStepsModals from './modals/delete_steps';
|
||||||
import AddStepsModal from './modals/add_protocol_steps'
|
import AddStepsModal from './modals/add_protocol_steps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
|
@ -145,10 +145,10 @@ export default {
|
||||||
closeStartStepsDeletingModal() {
|
closeStartStepsDeletingModal() {
|
||||||
this.stepsDeleting = false;
|
this.stepsDeleting = false;
|
||||||
},
|
},
|
||||||
openAddStepsModal(){
|
openAddStepsModal() {
|
||||||
this.stepsAdding = true;
|
this.stepsAdding = true;
|
||||||
},
|
},
|
||||||
closeAddStepsModal(){
|
closeAddStepsModal() {
|
||||||
this.stepsAdding = false;
|
this.stepsAdding = false;
|
||||||
},
|
},
|
||||||
loadProtocol() {
|
loadProtocol() {
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ export default {
|
||||||
fetchOptions() {
|
fetchOptions() {
|
||||||
if (this.optionsUrl) {
|
if (this.optionsUrl) {
|
||||||
const params = { query: this.query, page: this.nextPage, ...this.urlParams };
|
const params = { query: this.query, page: this.nextPage, ...this.urlParams };
|
||||||
let config = {
|
const config = {
|
||||||
method: this.ajaxMethod,
|
method: this.ajaxMethod,
|
||||||
url: this.optionsUrl
|
url: this.optionsUrl
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue