| | |
| | | @on-click-suffix="classAttr_extButton"></OIForm> |
| | | </view> |
| | | <view class="view-bottom"> |
| | | <button type="primary" @tap="onClickOk" class="btn_add" :class="okLoading?'btn_disabled':''" |
| | | <button type="primary" @tap="ok" class="btn_add" :class="okLoading?'btn_disabled':''" |
| | | :disabled="okLoading">{{translateSys('ok')}}</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | |
| | |
| | | } from "@/api/data.js" |
| | | import dayjs from "dayjs"; |
| | | import OIForm from '@/components/oi-form/index.vue' |
| | | import buttonClickMixin from '@/mixins/button-click.js'; |
| | | |
| | | export default { |
| | | name: "PageModalForm", |
| | | mixins: [buttonClickMixin], |
| | | components: { |
| | | OIForm |
| | | }, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | onClickOK() { |
| | | this.handleButtonClick(async (done) => { |
| | | await this.ok() |
| | | done(); // 重置状态 |
| | | }); |
| | | }, |
| | | //确定 |
| | | async ok() { |
| | | try { |
| | |
| | | mask: true |
| | | }); |
| | | this.okLoading = true |
| | | console.log(obj_attr) |
| | | var obj_attr = this.head_styledef.form.model || {}; |
| | | console.log(obj_attr) |
| | | let ret = await this.sava(); |
| | |
| | | |
| | | uni.navigateBack() |
| | | } catch (ex) { |
| | | this.okLoading = true |
| | | return false; |
| | | } |
| | | }, |