| | |
| | | </a> |
| | | </view> |
| | | </view> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="dropdownBtns.length==0">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="dropdownBtns.length==0" :class="saving?'btn_disabled':''" :disabled="saving">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | |
| | | </view> |
| | |
| | | activity: null, |
| | | receiver: null, |
| | | intentFilter: null, |
| | | content: '' |
| | | content: '', |
| | | saving:false |
| | | }; |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | |
| | | title: this.translateSys("loading"), |
| | | mask: true |
| | | }); |
| | | var obj_attr = this.head_styledef.form.model; |
| | | this.saving = true |
| | | var obj_attr = this.head_styledef.form.model || []; |
| | | console.log(obj_attr); |
| | | // var req = Object.keys(obj_attr).map((a) => ({ |
| | | // name: a, |
| | |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | this.saving = false |
| | | return; |
| | | } |
| | | if (action.info) { |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | this.saving = false |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | this.saving = false |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | |
| | | }); |
| | | }, |
| | | afterOK() { |
| | | this.saving = true |
| | | var obj_attr = this.head_styledef.form.model; |
| | | // console.log(obj_attr); |
| | | var input_param = { |
| | |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | this.saving = false |
| | | return false |
| | | } else { |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | this.saving = false |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | this.saving = false |
| | | uni.showModal({ |
| | | title: this.translateSys('tip') + "7.1", |
| | | content: ex.errMsg, |
| | |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | .btn_cancel { |
| | | width: 45%; |
| | | margin: 0 10rpx; |