| | |
| | | <uni-forms-item v-if="item.name != 'Layout'" :label="item.label ?item.label +':':'' " |
| | | :label-width="item.labelWidth+'px'"> |
| | | <uni-data-picker v-if="item.name=='Select'" :class="item.disabled?'input-disabled':''" |
| | | v-model="item.value" :localdata="item.useDict ? item.dict : item.selections" @change="onEnterChange(item)" |
| | | :readonly="item.disabled" :clear-icon="false" :popup-title="item.label"></uni-data-picker> |
| | | v-model="item.value" :localdata="item.useDict ? item.dict : item.selections" |
| | | @change="onEnterChange(item)" :readonly="item.disabled" :clear-icon="false" |
| | | :popup-title="item.label"></uni-data-picker> |
| | | <view class="input-wrapper" v-if="item.name=='Input' || item.name=='InputNumber'"> |
| | | <text v-if="item.setting.prefix" class="uni-icon" :class="[item.setting.prefix]" |
| | | @click="classAttr_extButton(item)"></text> |
| | |
| | | <uni-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 v-if="col!=null" :label="col.label ? col.label +':':''" :label-width="col.labelWidth+'px'"> |
| | | <uni-forms-item v-if="col!=null" :label="col.label ? col.label +':':''" |
| | | :label-width="col.labelWidth+'px'"> |
| | | <uni-data-picker v-if="col.name=='Select'" :class="col.disabled?'input-disabled':''" |
| | | v-model="col.value" :localdata="col.useDict ? col.dict : col.selections" @change="onEnterChange(col)" |
| | | :readonly="col.disabled" :clear-icon="false" :popup-title="col.label"></uni-data-picker> |
| | | v-model="col.value" :localdata="col.useDict ? col.dict : col.selections" |
| | | @change="onEnterChange(col)" :readonly="col.disabled" :clear-icon="false" |
| | | :popup-title="col.label"></uni-data-picker> |
| | | <view class="input-wrapper" v-if="col.name=='Input' || col.name=='InputNumber'"> |
| | | <text v-if="col.setting.prefix" class="uni-icon" :class="[col.setting.prefix]" |
| | | @click="classAttr_extButton(col)"></text> |
| | |
| | | <!-- <text></text> --> |
| | | <!-- <button type="primary" @click="savaItem(ii)" v-if="param.Sub_Page[0].OK_Button==true">保存</Button> --> |
| | | <button size="mini" v-for="(btn,btnIndex) in pageData.Row_Button" |
| | | :key="btnIndex" :type="btn.FunCode == 'Delete' ? 'warn' : 'primary'" |
| | | :key="btnIndex" type="default" |
| | | :class="btn.FunCode == 'Delete' ? 'btn-warn' : 'btn-primary'" |
| | | @click="onRowBtnClick(btn, pageData,ii)"> |
| | | <Icon v-if="btn.Style == 'img' || btn.Style == 'img_text'" |
| | | class="Img" /> |
| | |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="view-bottom" v-if="pageData.Button.length >0 "> |
| | | <button v-for="(btn,btnIndex) in pageData.Button" :key="btnIndex" |
| | | :type="btn.FunCode == 'Cancel' ? 'default' : 'primary'" |
| | | <button v-for="(btn,btnIndex) in pageData.Button" :key="btnIndex" type="default" |
| | | :class="{'btn-disabled':(btn.FunCode != 'Cancel' && pageData.okLoading), |
| | | 'btn-one':pageData.Button.length == 1, |
| | | 'btn-left':(btnIndex < pageData.Button.length - 1), |
| | | 'btn-right': btnIndex > 0 && btnIndex == pageData.Button.length - 1 , |
| | | 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3),'width-30':(pageData.DropDownButton.length> 0)}" |
| | | 'btn-primary':(btn.FunCode != 'Cancel'), |
| | | 'btn-cancel':(btn.FunCode == 'Cancel'), |
| | | 'btn-one':pageData.Button.length == 1, |
| | | 'btn-left':(btnIndex < pageData.Button.length - 1), |
| | | 'btn-right': btnIndex > 0 && btnIndex == pageData.Button.length - 1 , |
| | | 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3),'width-30':(pageData.DropDownButton.length> 0)}" |
| | | :disabled="(btn.FunCode != 'Cancel' && pageData.okLoading)? true:false" |
| | | @click="onBtnClick(btn, pageData)"> |
| | | <Icon v-if="btn.Style == 'img' || btn.Style == 'img_text'" class="Img" /> |
| | |
| | | <view class="popup-header">{{check_list.title}}</view> |
| | | <view class="popup-content" :class="{ 'popup-height': popupType === 'left' || popupType === 'right' }" |
| | | :style="{'width':check_list.width?check_list.width+'px':'375rpx','height':check_list.height?check_list.height+'px':popupType =='center'?'60vh':'88vh'}"> |
| | | <view class="popup-cont" :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}"> |
| | | <view class="popup-cont" |
| | | :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}"> |
| | | <view class="view_popup_CheckList" v-for="(item,index) in check_list.items"> |
| | | <checkbox-group class="check_list" @change="checkChange" :data-ischeck="item.check" |
| | | :data-index="index" :style="{'margin-left': '10rpx'}"> |
| | |
| | | title: this.translateSys("error"), |
| | | content: this.translate("tip_no_master_class"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | }, |
| | |
| | | styledefHead.form |
| | | .model[ele.fieldId] = itemName; |
| | | } |
| | | |
| | | |
| | | ele.selections = selections.map((a) => { |
| | | return { |
| | | value: a.value, |
| | |
| | | title: this.translateSys("error") + "1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return {} |
| | | } |
| | |
| | | await this.DictGetInfo(ele.bind.dict, |
| | | detailstyledef.form |
| | | .model, ele); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | if (ele?.name === "Select") { |
| | | ele.selections =[] |
| | | ele.selections = [] |
| | | } |
| | | } |
| | | |
| | | |
| | | } else { |
| | | for (let j in ele.setting.colList) { |
| | | const col = ele.setting.colList[j] |
| | |
| | | .bind.dict, |
| | | detailstyledef.form |
| | | .model, col); |
| | | } |
| | | else |
| | | { |
| | | } else { |
| | | if (col?.name === "Select") { |
| | | col.selections =[] |
| | | col.selections = [] |
| | | } |
| | | } |
| | | } |
| | |
| | | title: this.translateSys("error") + "2", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return {} |
| | | } |
| | |
| | | title: this.translateSys("error") + "3", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate('icon_click_callback_empty'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate('icon_click_event_empty'), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | |
| | | getDetailAttrList(pageData) { |
| | | const detailAttrList = []; |
| | | console.log(pageData) |
| | | console.log(pageData) |
| | | if (pageData.DefList) { |
| | | pageData.DefList.forEach(style => { |
| | | var detail_attr = {}; |
| | |
| | | }); |
| | | }); |
| | | } |
| | | console.log(detailAttrList) |
| | | console.log(detailAttrList) |
| | | const jsonlist = []; |
| | | detailAttrList.forEach(attr => { |
| | | jsonlist.push({ |
| | |
| | | }); |
| | | var obj_attr = this.head_styledef.form.model; |
| | | // console.log(obj_attr); |
| | | |
| | | |
| | | var input_param = Base64.encode( |
| | | JSON.stringify( |
| | | Object.keys(head_attr).map((a) => ({ |
| | |
| | | const data_json = Base64.encode( |
| | | JSON.stringify(jsonList) |
| | | ); |
| | | console.log(jsonList) |
| | | console.log(jsonList) |
| | | var dataInfo = { |
| | | ed_type: 0, |
| | | start_transaction: true, |
| | |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | } else uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | return false; |
| | | } else { |
| | |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | |
| | | if (result.result_type == 0 && result.action) { |
| | |
| | | content: result.info, |
| | | showCancel: false, |
| | | confirmText: this |
| | | .translateSys("cancel") |
| | | .translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | title: this.translateSys("error") + "4.1", |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | }); |
| | | } |
| | |
| | | this.translate('reason') + this.translateSys("colon") + |
| | | tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | }, |
| | |
| | | value: val |
| | | }); |
| | | }); |
| | | |
| | | |
| | | head_styledef.form.items.forEach(async (attr_item, index) => { |
| | | if (attr_item.name != "Layout") { |
| | | if (attr_item.fieldId == attr.attr) { |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("tip"), |
| | | content: "popupParam为空!", |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | title: this.translateSys("tip"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } else uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: tip + ',' + this.translateSys('tip') + ':' + data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | title: this.translateSys("tip"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | |
| | | var actionlist = data.action; |
| | |
| | | .translate( |
| | | "tip_action_unprocessed"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | title: this.translateSys("error") + "3.1", |
| | | content: exStr, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | title: $this.translateSys("tip"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | } else uni.showModal({ |
| | | title: $this.translateSys("tip"), |
| | | content: tip + ',' + $this.translateSys('tip') + ':' + data |
| | | .ret, |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | return false |
| | | } else { |
| | |
| | | title: $this.translateSys("tip"), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | |
| | | if (data != "") { |
| | |
| | | .translate( |
| | | "tip_action_unprocessed"), |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | "quotation_mark_right") + $this.translateSys( |
| | | "comma") + 'event_id' + eventid, |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | title: $this.translateSys('tip') + "5.1", |
| | | content: exStr, |
| | | showCancel: false, |
| | | confirmText: $this.translateSys("cancel") |
| | | confirmText: $this.translateSys('close') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translateSys("unrealized"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | objAttr[item.fieldId] = item.value; |
| | | }); |
| | | |
| | | const url = `../modal/form/index?param=${JSON.stringify(btn)}&titlename=${btn.ShowName}&editMode=1&objAttr=${JSON.stringify(objAttr)}&type=updateDataObj` |
| | | const url = |
| | | `../modal/form/index?param=${JSON.stringify(btn)}&titlename=${btn.ShowName}&editMode=1&objAttr=${JSON.stringify(objAttr)}&type=updateDataObj` |
| | | var $this = this; |
| | | uni.navigateTo({ |
| | | url: url, |
| | |
| | | this.translate( |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return false; |
| | | } |
| | |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | return; |
| | | } |
| | |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | } else uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | |
| | | result.ret, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | return false; |
| | | } else { |
| | |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys( |
| | | "cancel") |
| | | 'close') |
| | | }); |
| | | if (result.result_type == 0) { |
| | | if (result.action) { |
| | |
| | | showCancel: false, |
| | | confirmText: this |
| | | .translateSys( |
| | | "cancel" |
| | | 'close' |
| | | ) |
| | | }); |
| | | } else if (item.action_type == |
| | |
| | | content: result.info, |
| | | showCancel: false, |
| | | confirmText: this |
| | | .translateSys("cancel") |
| | | .translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | |
| | | "comma") + |
| | | tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | <style> |
| | | .popup-content { |
| | | @include flex; |
| | | |
| | | |
| | | } |
| | | |
| | | .popup-height { |
| | |
| | | flex-direction: column !important; |
| | | } |
| | | |
| | | |
| | | .view-bottom { |
| | | display: flex; |
| | | flex-direction: row; |
| | |
| | | padding: 10rpx 15rpx 30rpx 15rpx; |
| | | |
| | | .btn-disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | background-color: #ddd !important; |
| | | color: #888 !important; |
| | | } |
| | | |
| | | |
| | | |
| | | .btn-left { |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | border: none; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | |
| | | } |
| | | |
| | | .btn-one { |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | border: none; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | |
| | | .btn-right { |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | border: none; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | |
| | | width: 30%; |
| | | margin-left: 1%; |
| | | } |
| | | } |
| | | |
| | | .btn-warn { |
| | | background: #ff2d1e; |
| | | border: none; |
| | | color: #fff; |
| | | } |
| | | |
| | | .btn-cancel { |
| | | background: #fff; |
| | | color: #000; |
| | | } |
| | | |
| | | .btn-primary { |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | } |
| | | |
| | | [nvue] uni-view { |
| | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | .view-popup { |
| | | .view-popup { |
| | | position: relative; |
| | | } |
| | | |
| | |
| | | .popup-footer { |
| | | float: right; |
| | | position: absolute; |
| | | bottom: 0; |
| | | bottom:10rpx; |
| | | right: 20rpx; |
| | | } |
| | | |
| | |
| | | margin-top: 50rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | // background: #27A6E1; |
| | | // border: none; |
| | | // color: #fff; |
| | | background: #fff; |
| | | color: #000; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: right; */ |