1
This commit is contained in:
parent
45c7476128
commit
5df33459d0
@ -55,10 +55,19 @@
|
|||||||
// beforeCreate() KO
|
// beforeCreate() KO
|
||||||
// beforeMount() mounted() OK
|
// beforeMount() mounted() OK
|
||||||
created() {
|
created() {
|
||||||
//wyw 没有驳回接口
|
if (this.refuseApi) {
|
||||||
// this.isBtnRefuseDisable = (this.__page__.options.refuseApi == null || this.__page__.options.refuseApi ==
|
this.localIsBtnRefuseDisable = false
|
||||||
// undefined || this.__page__.options.refuseApi == 'undefined') ? true : false
|
} else {
|
||||||
this.localIsBtnRefuseDisable = (this.$route.query.refuseApi == null || this.$route.query.refuseApi == undefined || this.$route.query.refuseApi == 'undefined') ? true : false
|
const pages = getCurrentPages()
|
||||||
|
const currentPage = pages[pages.length - 1]
|
||||||
|
const query = currentPage.options || {}
|
||||||
|
this.localIsBtnRefuseDisable = !(query.refuseApi && query.refuseApi !== 'undefined')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.$route && this.$route.query) {
|
||||||
|
this.localIsBtnRefuseDisable = !(this.$route.query.refuseApi && this.$route.query.refuseApi !== 'undefined')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
isBtnRefuseDisable(newValue) {
|
isBtnRefuseDisable(newValue) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user