ccpo approval form script

This commit is contained in:
Andrew Croce 2018-09-13 12:59:42 -04:00 committed by dandds
parent 19e80cd183
commit 5f5052f528
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
import textinput from '../text_input'
export default {
name: 'ccpo-approval',
components: {
textinput
},
data: function () {
return {
approving: false,
denying: false
}
},
methods: {
setReview: function (e) {
if (e.target.value === 'approving') {
this.approving = true
this.denying = false
} else {
this.approving = false
this.denying = true
}
},
}
}

View File

@ -16,6 +16,7 @@ import NewProject from './components/forms/new_project'
import Modal from './mixins/modal' import Modal from './mixins/modal'
import selector from './components/selector' import selector from './components/selector'
import BudgetChart from './components/charts/budget_chart' import BudgetChart from './components/charts/budget_chart'
import CcpoApproval from './components/forms/ccpo_approval'
Vue.use(VTooltip) Vue.use(VTooltip)
@ -33,7 +34,8 @@ const app = new Vue({
financial, financial,
NewProject, NewProject,
selector, selector,
BudgetChart BudgetChart,
CcpoApproval
}, },
mounted: function() { mounted: function() {
const modalOpen = document.querySelector("#modalOpen") const modalOpen = document.querySelector("#modalOpen")