ccpo approval form script
This commit is contained in:
parent
19e80cd183
commit
5f5052f528
28
js/components/forms/ccpo_approval.js
Normal file
28
js/components/forms/ccpo_approval.js
Normal 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
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user