cuiqian2004
2024-08-20 946dae0a8885b529e7755788ba7872503d9f9d9d
pages/modal/5601.vue
@@ -24,7 +24,7 @@
            <!-- 栅格布局 -->
            <uni-row v-else :gutter="item.setting.gutter">
               <uni-col
                  :span=" item.setting.spanList && item.setting.spanList[key - 1]? item.setting.spanList[key - 1] : 24 / item.setting.col"
                  :span=" item.setting.spanList && item.setting.spanList[key]? item.setting.spanList[key] : 24 / item.setting.col"
                  v-for="(col,key) in item.setting.colList">
                  <uni-forms-item :label="col.label +':'" :label-width="col.labelWidth+'px'">
                     <uni-data-picker v-if="col.name=='Select'" :class="col.disabled?'input-disabled':''"
@@ -84,7 +84,7 @@
                                    <!-- 栅格布局 -->
                                    <uni-row class="demo-uni-row" v-else :gutter="item.setting.gutter">
                                       <uni-col
                                          :span=" item.setting.spanList && item.setting.spanList[key - 1]? item.setting.spanList[key - 1] : 24 / item.setting.col"
                                          :span=" item.setting.spanList && item.setting.spanList[key]? item.setting.spanList[key] : 24 / item.setting.col"
                                          v-for="(cols,key) in item.setting.colList">
                                          <view v-if="cols!=null">
                                             <text class="txt_title"
@@ -117,7 +117,7 @@
                        <button type="default" @tap="cancel"
                           class="btn_cancel">{{translateSys('cancel')}}</button>
                        <button type="primary" @tap="ok(pageData)"
                           class="btn_add">{{translateSys('ok')}}</button>
                           class="btn_add" :class="pageData.okLoading?'btn_disabled':''" :disabled="pageData.okLoading? true:false">{{translateSys('ok')}}</button>
                     </view>
                  </view>
               </swiper-item>
@@ -522,7 +522,7 @@
               console.log(result.decodedata);
               item.value = result.decodedata;
               var $this = this;
               if (item.oldvalue != item.value) {
               if (item.oldvalue != item.value&& item.value.trim() != "") {
                  item.oldvalue = item.value;
                  var attr = item.fieldId;
                  this.head_styledef.form.model[attr] = item.value;
@@ -610,7 +610,7 @@
         onEnterChange(item) { //回车,点击按钮,取消节点事件
            console.log(item);
            if (item.oldvalue != item.value) {
            if (item.oldvalue != item.value&& item.value.trim() != "") {
               item.oldvalue = item.value;
               var attr = item.fieldId;
               this.head_styledef.form.model[attr] = item.value;
@@ -834,7 +834,7 @@
                                             .page_name +
                                             this
                                             .translateSys(
                                                "sys.quotation_mark_right"
                                                "quotation_mark_right"
                                             ) +
                                             this
                                             .translate(
@@ -1069,6 +1069,35 @@
                                                         ele2
                                                         .attr
                                                      ) {
                                                         if (ele.name ==
                                                            'Select' &&
                                                            ele2
                                                            .choice_list
                                                         ) {
                                                            const
                                                               dictItemList = [];
                                                            const
                                                               choiceList =
                                                               ele2
                                                               .choice_list ||
                                                               [];
                                                            for (let d in
                                                                  choiceList) {
                                                               const
                                                                  val =
                                                                  choiceList[
                                                                     d
                                                                  ];
                                                               dictItemList
                                                                  .push({
                                                                     text: val,
                                                                     value: val
                                                                  });
                                                            }
                                                            ele.dict =
                                                               dictItemList;
                                                         }
                                                         ele.value =
                                                            ele2
                                                            .value;
@@ -1092,6 +1121,38 @@
                                                                     ele2
                                                                     .attr
                                                                  ) {
                                                                     if (col
                                                                        .name ==
                                                                        'Select' &&
                                                                        ele2
                                                                        .choice_list
                                                                     ) {
                                                                        const
                                                                           dictItemList = [];
                                                                        const
                                                                           choiceList =
                                                                           ele2
                                                                           .choice_list ||
                                                                           [];
                                                                        for (
                                                                           let d in
                                                                              choiceList
                                                                        ) {
                                                                           const
                                                                              val =
                                                                              choiceList[
                                                                                 d
                                                                              ];
                                                                           dictItemList
                                                                              .push({
                                                                                 text: val,
                                                                                 value: val
                                                                              });
                                                                        }
                                                                        col.dict =
                                                                           dictItemList;
                                                                     }
                                                                     col.value =
                                                                        ele2
                                                                        .value;
@@ -1525,19 +1586,20 @@
               uni.showModal({
                  title: this.translateSys("tip"),
                  content: this.translate(
                        "page.tip_no_data_first") +
                        "tip_no_data_first") +
                     this.translateSys(
                        "quotation_mark_left") + pageData.Name + this
                     .translateSys(
                        "sys.quotation_mark_right") +
                        "quotation_mark_right") +
                     this.translate(
                        "page.tip_no_data_last"),
                        "tip_no_data_last"),
                  showCancel: false,
                  confirmText: this.translateSys("cancel")
               });
               return false;
            }
            //获取表头属性
            pageData.okLoading = true
            var head_attr = {};
            this.$data.head_styledef.form.items.forEach(item => {
               if (item.name == "Layout") { //判断是否是栅栏格式
@@ -1618,6 +1680,7 @@
               });
            });
            if (jsonlist.length == 0) {
               pageData.okLoading = false
               uni.showModal({
                  title: this.translateSys("tip"),
                  content: this.translate("tip_no_select_data"),
@@ -1909,7 +1972,9 @@
                        "cancel")
                  });
               }
               pageParam.okLoading = false
            }).catch(ex => {
               pageParam.okLoading = false
               var tip = typeof ex == "string" ? ex : ex.errMsg;
               uni.showModal({
                  title: this.translateSys("error") + "8.1",
@@ -2143,8 +2208,14 @@
                  font-size: 38rpx;
                  font-weight: bold;
                  float: right;
                  color: #fff;
                  display: inline-block;
               }
               .btn_disabled {
                  background-color: #ddd;
                  color: #888;
               }
            }
         }