Commit 9d7804de authored by sandroresende's avatar sandroresende

atualização mod plancidades

parent 1d5443eb
......@@ -14455,7 +14455,7 @@ module.exports = Component.exports
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(14);
module.exports = __webpack_require__(302);
module.exports = __webpack_require__(305);
/***/ }),
......@@ -14654,7 +14654,11 @@ Vue.component("cadastro-iniciativa-projeto", __webpack_require__(12));
Vue.component("cadastro-restricao-meta", __webpack_require__(296));
Vue.component("cadastro-destaque", __webpack_require__(299));
//Transferegov - Programas
Vue.component("registro-programa", __webpack_require__(299));
Vue.component("cadastro-destaque", __webpack_require__(302));
var app = new Vue({
el: "#app"
......@@ -107901,6 +107905,825 @@ var Component = normalizeComponent(
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/mod_transferegov/RegistoPrograma.vue"
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-587be4a2", Component.options)
} else {
hotAPI.reload("data-v-587be4a2", Component.options)
}
module.hot.dispose(function (data) {
disposed = true
})
})()}
module.exports = Component.exports
/***/ }),
/* 300 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
props: ['url', 'programaTransferegov', 'programaCidades'],
data: function data() {
return {
//Eixos
eixos: '',
eixo: '',
subeixos: '',
subeixo: '',
subeixos2: '',
subeixo2: '',
//Resto
secretarias: '',
secretaria: '',
rps: '',
rp: '',
acoes: '',
acao: '',
bln_novo_pac: ''
};
},
methods: {
onChangeEixo: function onChangeEixo() {
var _this = this;
this.subeixo = '';
this.subeixo2 = '';
if (this.eixo != '') {
axios.get(this.url + '/api/transferegov/programas/subeixos/' + this.eixo).then(function (resposta) {
_this.subeixos = resposta.data;
}).catch(function (error) {
console.log(error);
});
}
},
onChangeSubeixo: function onChangeSubeixo() {
var _this2 = this;
this.subeixo2 = '';
if (this.subeixo != '') {
axios.get(this.url + '/api/transferegov/programas/subeixos2/' + this.subeixo).then(function (resposta) {
_this2.subeixos2 = resposta.data;
}).catch(function (error) {
console.log(error);
});
}
},
onChangeNovoPac: function onChangeNovoPac() {
this.eixo = '';
this.onChangeEixo();
}
},
mounted: function mounted() {
var _this3 = this;
axios.get(this.url + '/api/transferegov/programas/secretarias').then(function (resposta) {
_this3.secretarias = resposta.data;
}).catch(function (error) {
console.log(error);
});
axios.get(this.url + '/api/transferegov/programas/rps').then(function (resposta) {
_this3.rps = resposta.data;
}).catch(function (error) {
console.log(error);
});
axios.get(this.url + '/api/transferegov/programas/eixos').then(function (resposta) {
_this3.eixos = resposta.data;
}).catch(function (error) {
console.log(error);
});
axios.get(this.url + '/api/transferegov/programas/acoes').then(function (resposta) {
_this3.acoes = resposta.data;
}).catch(function (error) {
console.log(error);
});
if (this.programaCidades) {
this.secretaria = this.programaCidades.id_secretaria;
this.rp = this.programaCidades.cod_resultado_primario;
this.eixo = this.programaCidades.cod_eixo ? this.programaCidades.cod_eixo : '';
this.onChangeEixo();
this.subeixo = this.programaCidades.cod_subeixo ? this.programaCidades.cod_subeixo : '';
this.onChangeSubeixo();
this.subeixo2 = this.programaCidades.cod_subeixo_nivel_2 ? this.programaCidades.cod_subeixo_nivel_2 : '';
this.acao = this.programaCidades.cod_acao;
this.bln_novo_pac = this.programaCidades.bln_novo_pac;
}
}
});
/***/ }),
/* 301 */
/***/ (function(module, exports, __webpack_require__) {
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", {}, [
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "d-flex" }, [
_c("div", { staticClass: "column col-4" }, [
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-12" }, [
_c("label", [_vm._v("Nome do Programa")]),
_vm._v(" "),
_c("p", [_vm._v(_vm._s(_vm.programaTransferegov.nom_programa))])
])
]),
_vm._v(" "),
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-12" }, [
_c("div", { staticClass: "row" }, [
_c("div", { staticClass: "column col" }, [
_c("label", [_vm._v("Número do Programa")]),
_vm._v(" "),
_c("p", [
_vm._v(_vm._s(_vm.programaTransferegov.cod_programa))
]),
_vm._v(" "),
_c("input", {
attrs: {
name: "cod_programa",
id: "cod_programa",
type: "hidden"
},
domProps: { value: _vm.programaTransferegov.cod_programa }
})
]),
_vm._v(" "),
_c("div", { staticClass: "column col" }, [
_c("label", [_vm._v("Ação Orçamentária")]),
_vm._v(" "),
_c("p", [
_vm._v(
_vm._s(_vm.programaTransferegov.num_acao_orcamentaria)
)
])
])
])
])
]),
_vm._v(" "),
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-12" }, [
_c("div", { staticClass: "row" }, [
_c("div", { staticClass: "column col" }, [
_c("label", [_vm._v("Ano")]),
_vm._v(" "),
_c("p", [
_vm._v(
_vm._s(_vm.programaTransferegov.num_ano_disponiblizacao)
)
])
]),
_vm._v(" "),
_c("div", { staticClass: "column col" }, [
_c("label", [_vm._v("Situação")]),
_vm._v(" "),
_c("p", [
_vm._v(_vm._s(_vm.programaTransferegov.dsc_sit_programa))
])
])
])
])
])
]),
_vm._v(" "),
_c("span", { staticClass: "br-divider vertical mx-3" }),
_vm._v(" "),
_c("div", { staticClass: "column col-8" }, [
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-6" }, [
_c("label", [_vm._v("Ações")]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.acao,
expression: "acao"
}
],
staticClass: "form-select br-select",
attrs: { name: "cod_acao", id: "cod_acao", required: "" },
on: {
change: function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.acao = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
}
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.acoes, function(item) {
return _c("option", {
key: item.cod_acao_governo,
domProps: {
value: item.cod_acao_governo,
textContent: _vm._s(item.cod_acao_governo)
}
})
})
],
2
)
]),
_vm._v(" "),
_c("div", { staticClass: "column col-6" }, [
_c("label", { attrs: { for: "secretaria" } }, [
_vm._v("Secretaria")
]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.secretaria,
expression: "secretaria"
}
],
staticClass: "form-select br-select",
attrs: { name: "secretaria", id: "secretaria", required: "" },
on: {
change: function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.secretaria = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
}
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.secretarias, function(item) {
return _c("option", {
key: item.id,
domProps: {
value: item.id,
textContent: _vm._s(
item.txt_sigla_secretaria +
" - " +
item.txt_nome_secretaria
)
}
})
})
],
2
)
])
]),
_vm._v(" "),
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-6" }, [
_c("label", { attrs: { for: "rp" } }, [
_vm._v("Resultado Primário")
]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.rp,
expression: "rp"
}
],
staticClass: "form-select br-select",
attrs: { name: "rp", id: "rp", required: "" },
on: {
change: function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.rp = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
}
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.rps, function(item) {
return _c("option", {
key: item.cod_resultado_primario,
domProps: {
value: item.cod_resultado_primario,
textContent: _vm._s(item.txt_rp)
}
})
})
],
2
)
]),
_vm._v(" "),
_c("div", { staticClass: "column col-6" }, [
_c("label", [_vm._v("Novo PAC")]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.bln_novo_pac,
expression: "bln_novo_pac"
}
],
staticClass: "form-select br-select",
attrs: {
name: "bln_novo_pac",
id: "bln_novo_pac",
required: ""
},
on: {
change: [
function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.bln_novo_pac = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
},
_vm.onChangeNovoPac
]
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_c("option", { domProps: { value: true } }, [_vm._v("Sim")]),
_vm._v(" "),
_c("option", { domProps: { value: false } }, [_vm._v("Não")])
]
)
])
]),
_vm._v(" "),
_c("div", { staticClass: "row mt-3" }, [
_c("div", { staticClass: "column col-4" }, [
_c("label", { attrs: { for: "eixo" } }, [_vm._v("Eixo")]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.eixo,
expression: "eixo"
}
],
staticClass: "form-select br-select",
attrs: {
name: "eixo",
id: "eixo",
disabled: !this.bln_novo_pac,
required: ""
},
on: {
change: [
function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.eixo = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
},
_vm.onChangeEixo
]
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.eixos, function(item) {
return _c("option", {
key: item.cod_eixo,
domProps: {
value: item.cod_eixo,
textContent: _vm._s(item.txt_eixo)
}
})
})
],
2
)
]),
_vm._v(" "),
_c("div", { staticClass: "column col-4" }, [
_c("label", { attrs: { for: "subeixo" } }, [_vm._v("Sub-eixo")]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.subeixo,
expression: "subeixo"
}
],
staticClass: "form-select br-select",
attrs: {
name: "subeixo",
id: "subeixo",
disabled: this.eixo == "",
required: ""
},
on: {
change: [
function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.subeixo = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
},
_vm.onChangeSubeixo
]
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.subeixos, function(item) {
return _c("option", {
key: item.cod_subeixo,
domProps: {
value: item.cod_subeixo,
textContent: _vm._s(item.txt_subeixo)
}
})
})
],
2
)
]),
_vm._v(" "),
_c("div", { staticClass: "column col-4" }, [
_c("label", [_vm._v("Sub-eixo 2")]),
_vm._v(" "),
_c(
"select",
{
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.subeixo2,
expression: "subeixo2"
}
],
staticClass: "form-select br-select",
attrs: {
name: "subeixo2",
id: "subeixo2",
disabled: this.subeixo == "",
required: ""
},
on: {
change: function($event) {
var $$selectedVal = Array.prototype.filter
.call($event.target.options, function(o) {
return o.selected
})
.map(function(o) {
var val = "_value" in o ? o._value : o.value
return val
})
_vm.subeixo2 = $event.target.multiple
? $$selectedVal
: $$selectedVal[0]
}
}
},
[
_c("option", { attrs: { value: "" } }, [
_vm._v("Escolha uma opção:")
]),
_vm._v(" "),
_vm._l(_vm.subeixos2, function(item) {
return _c("option", {
key: item.cod_subeixo_nivel_2,
domProps: {
value: item.cod_subeixo_nivel_2,
textContent: _vm._s(item.txt_sigla_subeixo_nivel_2)
}
})
})
],
2
)
])
])
])
])
]),
_vm._v(" "),
_vm._m(0)
])
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "row" }, [
_c("div", { staticClass: "column" }, [
_c("div", { staticClass: "p-3 text-right" }, [
_c(
"button",
{
staticClass: "br-button primary mr-3",
attrs: { type: "submit" }
},
[_vm._v("Salvar\n ")]
),
_vm._v(" "),
_c(
"button",
{
staticClass: "br-button danger mr-3",
attrs: {
type: "button",
onclick: "javascript:window.history.go(-1)"
}
},
[_vm._v("Voltar\n ")]
)
])
])
])
}
]
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api") .rerender("data-v-587be4a2", module.exports)
}
}
/***/ }),
/* 302 */
/***/ (function(module, exports, __webpack_require__) {
var disposed = false
var normalizeComponent = __webpack_require__(0)
/* script */
var __vue_script__ = __webpack_require__(303)
/* template */
var __vue_template__ = __webpack_require__(304)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
__vue_script__,
__vue_template__,
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/mod_briefing/CadastroDestaque.vue"
/* hot reload */
......@@ -107923,7 +108746,7 @@ module.exports = Component.exports
/***/ }),
/* 300 */
/* 303 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
......@@ -108096,7 +108919,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
});
/***/ }),
/* 301 */
/* 304 */
/***/ (function(module, exports, __webpack_require__) {
var render = function() {
......@@ -108393,7 +109216,7 @@ if (false) {
}
/***/ }),
/* 302 */
/* 305 */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
......@@ -467,7 +467,12 @@ Vue.component(
);
//Transferegov - Programas
Vue.component(
"registro-programa",
require("./components/mod_transferegov/RegistoPrograma.vue")
);
......
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