From c54802aead926ec66f2c1263ce1615aee0623728 Mon Sep 17 00:00:00 2001 From: cuiqian2004 <cuiqian2004@163.com> Date: 星期五, 16 八月 2024 17:26:01 +0800 Subject: [PATCH] mobox3 端口配置 --- pages/modal/5601.vue | 65 +++++++++++++++++++++++++++++++- 1 files changed, 63 insertions(+), 2 deletions(-) diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue index 8684971..114018f 100644 --- a/pages/modal/5601.vue +++ b/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" @@ -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; -- Gitblit v1.9.1