d
cuiqian2004
2025-04-16 9201045a62b97c63e0cda7a63bc383b4074b2ee0
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;
            }
         },
@@ -1844,40 +1838,7 @@
         flex-direction: column;
      }
      .v-head-style {
         width: 98%;
         .uni-forms-item {
            margin-bottom: 11rpx;
         }
         .input-wrapper {
            border: 1px solid #d5d5d5;
            width: 100%;
            display: flex;
            flex-direction: row;
            .uni-input {
               flex: 1;
               padding: 12rpx 8rpx;
               color: #2d8cf0;
               // height: 40rpx;
               // line-height: 40rpx;
            }
            .uni-icon {
               padding: 10rpx 5rpx;
               font-size: 32rpx;
               color: rgb(192, 196, 204);
            }
         }
         .input-wrapper:hover {
            border: 1px solid rgb(41, 121, 255);
         }
      }
      .view-content {
         display: flex;
         flex: 1;