| | |
| | | width: 100%; |
| | | } |
| | | .tx_title{ |
| | | font-size: 36rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | .tx_title2{ |
| | | font-size: 36rpx; |
| | | font-size: 32rpx; |
| | | text-align: right; |
| | | display: inline-block; |
| | | vertical-align: -2px; |
| | |
| | | transition-duration: 0.1s; |
| | | } |
| | | button.btn_add { |
| | | width:49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | display: inline-block; |
| | | } |
| | | button.btn_cancel { |
| | | width:49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | .i_tishi{ |
| | | color: red; |
| | |
| | | vertical-align: middle; |
| | | margin-left: 8px; |
| | | /* width: 71%; */ |
| | | } |
| | | |
| | | .input_vallist { |
| | | max-height: 350rpx; |
| | | overflow-y:auto; |
| | | display: none; |
| | | } |
| | | .input_vallist ul{ |
| | | /* border: 1px solid red; */ |
| | | padding: 0 20rpx; |
| | | } |
| | | .input_vallist ul li{ |
| | | list-style: none; |
| | | padding: 20rpx; |
| | | border-bottom: 1px solid #ccc; |
| | | } |
| | | .input_vallist ul li a{ |
| | | float: right; |
| | | } |
| | | .input_vallist ul li a i { |
| | | font-size: 45rpx; |
| | | } |
| | | </style> |
| | | |
| | |
| | | <input type="text" :value="attr.Value" @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}" :disabled="attr.edit?false:true" > <!-- =='flase'?true:false --> |
| | | <textarea :value="attr.Value" @focus="ontap" @blur="onevent" v-else-if="attr.Height=='2'" :data-index="index":data-iindex="iindex" style="height:60px;" :style="{'width':attr.Width}" :disabled="attr.edit?false:true"></textarea> |
| | | <textarea :value="attr.Value" @focus="ontap" @blur="onevent" v-else-if="attr.Height=='3'" :data-index="index":data-iindex="iindex" style="height:90px;" :style="{'width':attr.Width}" :disabled="attr.edit?false:true"></textarea> |
| | | <!-- 扫码后事件返回 --> |
| | | <div class="input_vallist" > |
| | | <ul v-for="(inputval,vindex) in inputValList"> |
| | | <li><span>{{inputval.Name}}</span><a href="javascript:;" @tap="inputValListIsDel(vindex)"><i class="ace-icon fa fa-times"></i></a></li> |
| | | </ul> |
| | | </div> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | </view> |
| | | <button type="default" @tap="cancel" class="btn_cancel">取消</button> |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | edit_compose_cls_id:"", |
| | | global_attr:[], |
| | | refdatastore: [], //引用数据存储区// {attr:'G_PRJ_' + bindattr + '_ID', value:info.id} |
| | | |
| | | inputValList:[{Name:"test"},{Name:"test2"},{Name:"test3"},{Name:"test4"},{Name:"test5"},{Name:"test6"},{Name:"test7"}], |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | cancel(e){ |
| | | uni.navigateBack({ |
| | | delta:1 //返回层数,2则上上页 |
| | | }); |
| | | }, |
| | | async classGridStyleInfo(){ |
| | | var $this = this; |
| | | var gridstyleInfo = { |
| | |
| | | } |
| | | }, |
| | | ontap(e){ //扫码功能 |
| | | var $ele = e; |
| | | //console.log(e.target) |
| | | getApp().onScan((result)=>{ |
| | | //console.log(result.decodedata); |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=result.decodedata; |
| | | uni.hideKeyboard(); |
| | | this.onevent($ele,result.decodedata); |
| | | }) |
| | | }, |
| | | onarrow(index,open){ |
| | |
| | | |
| | | |
| | | }, |
| | | onevent(e){ |
| | | onevent(e,decodedata){ |
| | | // console.log(e.target); |
| | | var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | // console.log(data_attr); |
| | | // console.log(decodedata); |
| | | if (e.target.value != data_attr.Value) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=e.target.value; |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=decodedata?decodedata:e.target.value; |
| | | var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | |
| | | } |
| | | } |
| | | |
| | | }, |
| | | inputValListIsDel(index){ |
| | | // console.log(index); |
| | | this.$data.inputValList.splice(index, 1); //删除tabPagejson的内容 |
| | | // console.log(this.$data.inputValList); |
| | | }, |
| | | addresschange(e) { |
| | | // console.log(e.target); |
| | |
| | | not_trigger_sys_event: '' |
| | | }; |
| | | |
| | | // return |
| | | console.log(dataInfo); |
| | | // return |
| | | this.$store.dispatch('addclassattr',dataInfo).then(success=>{ |
| | | console.log(success); |
| | | uni.hideLoading(); |
| | |
| | | ca.select = attrs[j].select==undefined?false:attrs[j].select; |
| | | ca.Value =""; |
| | | if(ca.dictitem){ |
| | | var dictitemlist=[]; |
| | | for (var d = 0; d < ca.dictitem.length; d++) { |
| | | ca.dictitem[d].label=ca.dictitem[d].CN_S_NAME; |
| | | ca.dictitem[d].value=ca.dictitem[d].CN_S_NAME; |
| | | } |
| | | if(ca.select == true) |
| | | ca.Value = [];//ca.dictitem[0].CN_S_NAME; |
| | | else |
| | | ca.Value = '请选择';//ca.dictitem[0].CN_S_NAME; |
| | | var dictitemlist=[]; |
| | | for (var d = 0; d < ca.dictitem.length; d++) { |
| | | ca.dictitem[d].label=ca.dictitem[d].CN_S_NAME; |
| | | ca.dictitem[d].value=ca.dictitem[d].CN_S_NAME; |
| | | if(ca.dictitem[d].CN_C_IS_DEFAULT=='1') |
| | | ca.Value=ca.dictitem[d].CN_S_NAME; |
| | | } |
| | | } |
| | | if(ca.Type=='日期' || ca.Type=='时间'){ |
| | | var nowDate = new Date(); |
| | |
| | | var dataInfo = { |
| | | edtype: info.edtype, eventid: info.eventid, projectid: info.projectid, |
| | | rclsid: info.rclsid, robjid: info.robjid, userlogin: info.userlogin, clsid: info.clsid, objid: info.objid, |
| | | attr: JSON.stringify(info.attr), extinfo: JSON.stringify(param), inputparameter: inputparameter, global_attr: global_attr |
| | | attr: JSON.stringify(info.attr), extinfo: JSON.stringify(param.enviroment), inputparameter: inputparameter, global_attr: global_attr |
| | | } |
| | | console.log(dataInfo); |
| | | this.$store.dispatch('DataObjRunCustomEventInfo',dataInfo).then(success=>{ |
| | |
| | | if(ca.Type=='字典' || ca.Type=='字典-字符串'){ |
| | | var dictItemList=[]; |
| | | for(var d in val[i].choice_list){ |
| | | var val =val[i].choice_list[d]; |
| | | dictItemList.push({"CN_S_NAME":val,"Name":val,"label":val,"value":val}); |
| | | var list_val =val[i].choice_list[d]; |
| | | dictItemList.push({"CN_S_NAME":list_val,"Name":list_val,"label":list_val,"value":list_val}); |
| | | |
| | | } |
| | | ca.dictitem = dictItemList; |