| | |
| | | <image class="logo" v-if="pageData.DefList.length==0" |
| | | src="../../images/mobox_log_200x40.png"> |
| | | </image> |
| | | <checkbox-group @change="checkboxChange"> |
| | | <div class="dv-panel" v-for="(style,ii) in pageData.DefList" @tap="onPanelClick(ii)" |
| | | :id="'dvpanel'+style.form.htmlobjId" |
| | | :class="style.form.htmlobjId==active_id?'bk-active':activelist[ii].active==true?'bk-active':''"> |
| | |
| | | <view v-if="item.name!='Layout'"> |
| | | <text class="txt_title" |
| | | :style="{'width':item.labelWidth+'px'}">{{item.label}}:</text> |
| | | <span class="form-item-span" v-if="item.disabled">{{item.value}}</span> |
| | | <span class="form-item-span" |
| | | v-if="item.disabled">{{item.value}}</span> |
| | | <input class="uni-input" v-if="!item.disabled" |
| | | :type="item.name=='InputNumber'?'number':'text'" :value="item.value" |
| | | :disabled="item.disabled" :placeholder="item.placeholder" /> |
| | | :type="item.name=='InputNumber'?'number':'text'" |
| | | v-model="item.value" :disabled="item.disabled" |
| | | :placeholder="item.placeholder" /> |
| | | </view> |
| | | <!-- 栅格布局 --> |
| | | <uni-row class="demo-uni-row" v-else :gutter="item.setting.gutter"> |
| | |
| | | v-if="cols.disabled">{{cols.value}}</span> |
| | | <input class="uni-input" v-if="!cols.disabled" |
| | | :type="cols.name=='InputNumber'?'number':'text'" |
| | | :value="cols.value" :disabled="cols.disabled" |
| | | v-model="cols.value" :disabled="cols.disabled" |
| | | :placeholder="cols.placeholder" /> |
| | | </view> |
| | | </uni-col> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="dv-panel-button"> |
| | | <checkbox-group v-if="pageData.Select_Button==true"> |
| | | <label> |
| | | <checkbox :value="style.SelBut_Checked" |
| | | |
| | | <checkbox v-if="pageData.Select_Button==true" :model="ii" |
| | | :checked="style.SelBut_Checked" /> |
| | | <!-- <text></text> --> |
| | | </label> |
| | | </checkbox-group> |
| | | |
| | | <!-- <button type="primary" @click="savaItem(ii)" v-if="param.Sub_Page[0].OK_Button==true">保存</Button> --> |
| | | <button type="warn" @tap="delItem(pageData,ii)" |
| | | v-if="pageData.Del_Button==true">{{translateSys('delete')}}</button> |
| | | </div> |
| | | </div> |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="view-bottom" v-if="pageData.OK_Button==true"> |
| | | <button type="default" @tap="cancel" |
| | |
| | | this.setData({ |
| | | current: index |
| | | }) |
| | | }, |
| | | checkboxChange(e) { |
| | | |
| | | var items = this.pageDetail[this.current]?.DefList || [] |
| | | var values = e.detail.value; |
| | | for (var i = 0, lenI = items.length; i < lenI; ++i) { |
| | | const item = items[i] |
| | | if (values.includes(i)) { |
| | | item.SelBut_Checked = true |
| | | } else { |
| | | item.SelBut_Checked = false |
| | | } |
| | | } |
| | | }, |
| | | async Head_UIStyleGetInfo(class_id, style_id) { //获取自定义表单样式 |
| | | var $this = this; |
| | |
| | | }) |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return; |
| | | } |
| | | // console.log(jsonlist); |
| | | const list = [] |
| | | list.push({ |
| | |
| | | })) |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return; |
| | | } |
| | | const list = [] |
| | | list.push({ |
| | | page_name: pageData.Name, |
| | |
| | | |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content:this.translate('execute_event_success'), |
| | | content: this.translate( |
| | | 'execute_event_success'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | |
| | | text-align: left; |
| | | padding-bottom: 20rpx; |
| | | |
| | | checkbox-group { |
| | | checkbox { |
| | | padding-left: 20px; |
| | | display: inline-block; |
| | | } |