From 7482313cc90753e730c275ad133b22da210f84f9 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 21 三月 2025 19:50:36 +0800
Subject: [PATCH]  test

---
 pages/modal/form/index.vue |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/pages/modal/form/index.vue b/pages/modal/form/index.vue
index 1d2c903..3d77b3a 100644
--- a/pages/modal/form/index.vue
+++ b/pages/modal/form/index.vue
@@ -7,7 +7,7 @@
 				@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>
 
@@ -56,11 +56,9 @@
 	} 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
 		},
@@ -1461,12 +1459,6 @@
 					});
 				});
 			},
-			onClickOK() {
-				this.handleButtonClick(async (done) => {
-					await this.ok()
-					done(); // 閲嶇疆鐘舵�
-				});
-			},
 			//纭畾
 			async ok() {
 				try {
@@ -1475,6 +1467,7 @@
 						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();
@@ -1490,6 +1483,7 @@
 
 					uni.navigateBack()
 				} catch (ex) {
+					this.okLoading = true
 					return false;
 				}
 			},

--
Gitblit v1.9.1