| | |
| | | </div> |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float'?'number':'text'" |
| | | :value="attr.Value" @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" |
| | | :value="attr.Value" :focus="focusField == `${index}-${iindex}`" @focus="ontap" |
| | | @click="onClick(index,iindex)" @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'" |
| | | <textarea :value="attr.Value" :focus="focusField == `${index}-${iindex}`" @focus="ontap" |
| | | @click="onClick(index,iindex)" @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'" |
| | | <textarea :value="attr.Value" :focus="focusField == `${index}-${iindex}`" @focus="ontap" |
| | | @click="onClick(index,iindex)" @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> |
| | | <!-- 扫码后事件返回 --> |
| | |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float' ?'number':'text'" |
| | | class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | | v-if="attr.Height=='1'" :data-index="index" :data-iindex="iindex" |
| | | class="attr_field" :value="attr.Value" :focus="focusField == `${index}-${iindex}`" |
| | | @focus="ontap" @blur="onevent" @click="onClick(index,iindex)" v-if="attr.Height=='1'" |
| | | :data-index="index" :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - (attr.ext_button==true?9:0) +'%'}" |
| | | :disabled="attr.edit?false:true"> |
| | | <textarea class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | | <textarea class="attr_field" :value="attr.Value" :focus="focusField == `${index}-${iindex}`" |
| | | @focus="ontap" @blur="onevent" @click="onClick(index,iindex)" |
| | | v-else-if="attr.Height=='2'" :data-index="index" :data-iindex="iindex" |
| | | style="height:60px;" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - (attr.ext_button==true?9:0) +'%'}" |
| | | :disabled="attr.edit?false:true"></textarea> |
| | | <textarea class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | | <textarea class="attr_field" :value="attr.Value" :focus="focusField ==`${index}-${iindex}`" |
| | | @focus="ontap" @blur="onevent" @click="onClick(index,iindex)" |
| | | v-else-if="attr.Height=='3'" :data-index="index" :data-iindex="iindex" |
| | | style="height:90px;" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - (attr.ext_button==true?9:0) +'%'}" |
| | |
| | | <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | |
| | | <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1"> |
| | | <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" |
| | | :maxlength="-1"> |
| | | </view> |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" :style="{'width':classattr.title_p_wdith+'%'}">{{attr.DispName}}:</p> |
| | |
| | | return { |
| | | title: '新增', |
| | | param: {}, |
| | | focusField: "", |
| | | focusOldField: "", |
| | | classAttrList: [], |
| | | classGridStyle: [], |
| | | edit_inital_event: "", //弹窗初始化事件ID |
| | |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | var param = JSON.parse(options.param); |
| | | this.$data.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字 |
| | | this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字 |
| | | // console.log(param); |
| | | if (!param.EditDlgMode) { |
| | | uni.showModal({ |
| | |
| | | }); |
| | | return; |
| | | } |
| | | this.$data.param = param; |
| | | this.param = param; |
| | | |
| | | this.loadData() |
| | | }, |
| | |
| | | var dataInfo = { |
| | | class_id: this.param.clsid |
| | | }; |
| | | this.$data.classAttrList = await classAttrList(dataInfo) || [] |
| | | this.classAttrList = await classAttrList(dataInfo) || [] |
| | | |
| | | var gridstyleInfo = { |
| | | class_id: this.param.clsid, |
| | |
| | | |
| | | const res = await classGridStyleInfo(gridstyleInfo) |
| | | res.StyleDef = JSON.parse(res.StyleDef); |
| | | this.$data.classGridStyle = res; |
| | | // console.log($this.$data.classGridStyle); |
| | | this.classGridStyle = res; |
| | | // console.log($this.classGridStyle); |
| | | this.class_attr_init(); |
| | | |
| | | } catch (ex) { |
| | |
| | | }, |
| | | classAttr_extButton(index, iindex) { //弹框层显示 type:top bottom center left right |
| | | var $this = this; |
| | | $this.$data.popupType = 'right' |
| | | $this.popupType = 'right' |
| | | // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 |
| | | $this.$refs.popup.open($this.popupType); |
| | | var data_attr = $this.$data.classAttrList[index].Attr[iindex]; |
| | | var data_attr = $this.classAttrList[index].Attr[iindex]; |
| | | // var value = action.value; |
| | | // var action ={"action_type":"open_common_dlg","value":{"common_dlg_id":"check_list","config":{"title":"生产工单","appear_style":"sideslip","width":250,"multiple_choice":"1","items":[{"id":"133D50D7-D798-4D2E-A15F-308365092DF5","name":"5100691673", "check":false},{"id":"22992021-7D3B-4959-86B7-EF184B596AC6","name":"5100691674", "check":false},{"id":"48FBBE8E-594D-45D5-8C24-385C661C4A1C","name":"5100691675", "check":false},{"id":"4E429C60-325A-42ED-BEA3-B3397C07CCA1","name":"5100691668", "check":false}]}}} |
| | | // if (action.action_type == 'open_common_dlg') { |
| | | // var value = action.value; |
| | | // if(value.common_dlg_id == 'check_list'){ |
| | | // $this.$data.check_list= value.config; |
| | | // $this.check_list= value.config; |
| | | // } |
| | | // } |
| | | // var popupParam={ |
| | |
| | | // req:"", |
| | | // data_attr:data_attr |
| | | // } |
| | | // $this.$data.popupParam= popupParam; |
| | | // $this.popupParam= popupParam; |
| | | // return; |
| | | var before_click_button = $this.$data.classAttrList[index].Attr[iindex].before_click_button; |
| | | var button_callback = $this.$data.classAttrList[index].Attr[iindex].button_callback; |
| | | var before_click_button = $this.classAttrList[index].Attr[iindex].before_click_button; |
| | | var button_callback = $this.classAttrList[index].Attr[iindex].button_callback; |
| | | if (!before_click_button) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | |
| | | // console.log(e.target.dataset); |
| | | var index = e.target.dataset.index; |
| | | var ischeck = e.target.dataset.ischeck; |
| | | var data = this.$data.check_list.items; |
| | | // this.$data.check_list.items=[]; |
| | | if (this.$data.check_list.multiple_choice == "0") { //判断时单选还是多选 |
| | | var data = this.check_list.items; |
| | | // this.check_list.items=[]; |
| | | if (this.check_list.multiple_choice == "0") { //判断时单选还是多选 |
| | | for (var i in data) { |
| | | data[i].check = false; |
| | | } |
| | | } |
| | | data[index].check = ischeck ? false : true; |
| | | this.$data.check_list.items = data; |
| | | this.check_list.items = data; |
| | | |
| | | }, |
| | | popup_cancel(e) { //弹框取消 |
| | |
| | | }, |
| | | popup_sava(e) { //弹框确定 |
| | | var $this = this; |
| | | var items = $this.$data.check_list.items; |
| | | var items = $this.check_list.items; |
| | | var data = []; |
| | | var name = ""; |
| | | for (var i = 0; i < items.length; i++) { |
| | |
| | | }); |
| | | } |
| | | } |
| | | if (!$this.$data.popupParam) { |
| | | if (!$this.popupParam) { |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "popupParam为空!", |
| | |
| | | }); |
| | | return; |
| | | } |
| | | $this.$data.classAttrList[$this.$data.popupParam.index].Attr[$this.$data.popupParam.iindex].Value = name; |
| | | $this.classAttrList[$this.popupParam.index].Attr[$this.popupParam.iindex].Value = name; |
| | | console.log(data); |
| | | var callback_eventid = $this.$data.popupParam.button_callback.trim(); |
| | | var callback_eventid = $this.popupParam.button_callback.trim(); |
| | | var info = { |
| | | eventid: callback_eventid, |
| | | edtype: "0", |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: $this.$data.param.clsid, |
| | | clsid: $this.param.clsid, |
| | | objid: "", |
| | | attr: $this.$data.popupParam.req, |
| | | attr: $this.popupParam.req, |
| | | dataJson: data |
| | | } |
| | | $this.DataObjRunCustomEvent(info, $this.$data.popupParam.data_attr); |
| | | $this.DataObjRunCustomEvent(info, $this.popupParam.data_attr); |
| | | this.$refs.popup.close(); |
| | | }, |
| | | cancel(e) { |
| | |
| | | delta: 1 //返回层数,2则上上页 |
| | | }); |
| | | }, |
| | | onClick(index, iindex) { |
| | | this.focusField = `${index}-${iindex}` |
| | | }, |
| | | |
| | | ontap(e) { //扫码功能 |
| | | var $ele = e; |
| | | //console.log(e.target) |
| | | this.focusOldField = `${e.target.dataset['index']}-${e.target.dataset['iindex']}` |
| | | getApp().onScan((result) => { |
| | | //console.log(result.decodedata); |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = |
| | | result.decodedata; |
| | | uni.hideKeyboard(); |
| | | this.onevent($ele, result.decodedata); |
| | | if (result.decodedata) { //第一个输入框不为空 |
| | | //初始化,下个输入框focus属性 |
| | | const attrs = this.classAttrList[e.target.dataset['index']].Attr || [] |
| | | var findd = false |
| | | for (let i = e.target.dataset['iindex'] + 1; i < attrs.length; i++) { |
| | | const ele = attrs[i] |
| | | |
| | | if (ele.hidden != true) { |
| | | if (utils.classUtils.attrTypeIsString(ele.Type) || utils.classUtils |
| | | .attrTypeIsInt(ele.Type)) { |
| | | const field = `${e.target.dataset['index']}-${i}` |
| | | if (this |
| | | .focusOldField == |
| | | field) { |
| | | this.setData({ |
| | | focusField: "" |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | focusField: this |
| | | .focusOldField |
| | | }) |
| | | } |
| | | this.$nextTick(() => { |
| | | this.setData({ |
| | | focusField: field |
| | | }) |
| | | }); |
| | | findd = true |
| | | break |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | if (findd) { |
| | | return |
| | | } |
| | | for (let i = e.target.dataset['index'] + 1; i < this.classAttrList.length; i++) { |
| | | const attrs2 = this.classAttrList[i].Attr || [] |
| | | for (let ii in attrs2) { |
| | | const ele = attrs2[ii] |
| | | if (ele.hidden != true) { |
| | | if (utils.classUtils.attrTypeIsString(ele.Type) || utils.classUtils |
| | | .attrTypeIsInt(ele.Type)) { |
| | | const field = `${i}-${ii}` |
| | | if (this |
| | | .focusOldField == |
| | | field) { |
| | | this.setData({ |
| | | focusField: "" |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | focusField: this |
| | | .focusOldField |
| | | }) |
| | | } |
| | | this.$nextTick(() => { |
| | | this.setData({ |
| | | focusField: field |
| | | }) |
| | | }); |
| | | break |
| | | } |
| | | } |
| | | } |
| | | if (findd) { |
| | | break |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | onarrow(index, open) { |
| | | // console.log(index+'--'+open); |
| | | this.$data.classAttrList[index].Open = open == true ? false : true; |
| | | this.classAttrList[index].Open = open == true ? false : true; |
| | | }, |
| | | ondateTime(e) { |
| | | //console.log(e.target) |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.target |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.target |
| | | .value; |
| | | }, |
| | | onchange(e) { |
| | | // console.log(e.target); |
| | | var value = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].dictitem[e |
| | | .target.value]; |
| | | var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | var value = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].dictitem[e |
| | | .detail.value]; |
| | | var data_attr = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | if (value.Name != data_attr.Value) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = value |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = value |
| | | .Name; |
| | | // console.log(this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value); |
| | | var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | // console.log(this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value); |
| | | var eventid = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | .action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | dataJson: [] |
| | |
| | | //为空时,清空属性value |
| | | if (item.length == 0) { |
| | | var index, iindex, dindex = 0; |
| | | for (var i in this.$data.classAttrList) { |
| | | for (var j in this.$data.classAttrList[i].Attr) { |
| | | if (delvalue[0].attr == this.$data.classAttrList[i].Attr[j].Name) { |
| | | this.$data.classAttrList[i].Attr[j].Value = ""; |
| | | for (var i in this.classAttrList) { |
| | | for (var j in this.classAttrList[i].Attr) { |
| | | if (delvalue[0].attr == this.classAttrList[i].Attr[j].Name) { |
| | | this.classAttrList[i].Attr[j].Value = ""; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | for (var v in item) { |
| | | var index, iindex, dindex = 0; |
| | | for (var i in this.$data.classAttrList) { |
| | | for (var j in this.$data.classAttrList[i].Attr) { |
| | | if (item[v].attr == this.$data.classAttrList[i].Attr[j].Name) { |
| | | for (var i in this.classAttrList) { |
| | | for (var j in this.classAttrList[i].Attr) { |
| | | if (item[v].attr == this.classAttrList[i].Attr[j].Name) { |
| | | index = i; |
| | | iindex = j; |
| | | } |
| | | } |
| | | } |
| | | var itemvalue = item[v]; |
| | | var data_attr = this.$data.classAttrList[index].Attr[iindex]; |
| | | var data_attr = this.classAttrList[index].Attr[iindex]; |
| | | |
| | | console.log(data_attr); |
| | | if (itemvalue.Name != data_attr.Value) { |
| | | this.$data.classAttrList[index].Attr[iindex].Value = value; |
| | | // console.log(this.$data.classAttrList[index].Attr[iindex].Value); |
| | | var eventid = this.$data.classAttrList[index].Attr[iindex].action; |
| | | this.classAttrList[index].Attr[iindex].Value = value; |
| | | // console.log(this.classAttrList[index].Attr[iindex].Value); |
| | | var eventid = this.classAttrList[index].Attr[iindex].action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | dataJson: [], |
| | |
| | | }, |
| | | onevent(e, decodedata) { |
| | | // console.log(e.target); |
| | | var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | var data_attr = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | // console.log(decodedata); |
| | | if (e.target.value != data_attr.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']] |
| | | if (e.detail.value != data_attr.Value) { |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = |
| | | decodedata ? decodedata : e.detail.value; |
| | | var eventid = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | .action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | dataJson: [], |
| | |
| | | oncheck(e) { |
| | | // console.log(e.target); |
| | | var ischecked = e.target.dataset.ischeck ? false : true; |
| | | var data_attr = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | var data_attr = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']]; |
| | | // console.log(data_attr); |
| | | if (ischecked != data_attr.Value) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = ischecked; |
| | | var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = ischecked; |
| | | var eventid = this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | .action; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | dataJson: [], |
| | |
| | | }, |
| | | inputValListIsDel(index) { |
| | | // console.log(index); |
| | | this.$data.inputValList.splice(index, 1); //删除tabPagejson的内容 |
| | | // console.log(this.$data.inputValList); |
| | | this.inputValList.splice(index, 1); //删除tabPagejson的内容 |
| | | // console.log(this.inputValList); |
| | | }, |
| | | addresschange(e) { |
| | | // console.log(e.target); |
| | | console.log(e.data.join(';')) |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.data.join( |
| | | this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.data.join( |
| | | ';'); |
| | | }, |
| | | classAttr_AddPer(index, iindex) { |
| | |
| | | AddPer(data, param) { |
| | | // console.log(param); |
| | | console.log(data); |
| | | $this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name; |
| | | $this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[0].Login + ';' + |
| | | $this.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name; |
| | | $this.classAttrList[param.index].Attr[param.iindex].ValID = data[0].Login + ';' + |
| | | data[0].Name; |
| | | |
| | | var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex].action; |
| | | var eventid = $this.classAttrList[param.index].Attr[param.iindex].action; |
| | | if (eventid) { |
| | | eventid = eventid.trim(); |
| | | if (eventid) { |
| | |
| | | rclsid: "", |
| | | robjid: "", |
| | | userlogin: data[0].Login, |
| | | clsid: $this.$data.param.clsid, |
| | | clsid: $this.param.clsid, |
| | | objid: "", |
| | | attr: [], |
| | | dataJson: [], |
| | | } |
| | | |
| | | // var data_attr = $this.$data.classAttrList[param.index].Attr[param.iindex]; |
| | | // var data_attr = $this.classAttrList[param.index].Attr[param.iindex]; |
| | | $this.DataObjRunCustomEvent(info); |
| | | } |
| | | } |
| | |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | // var value=this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.target.value]; |
| | | // this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value; |
| | | // var value=this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].RelCls[e.detail.value]; |
| | | // this.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=value; |
| | | }, |
| | | classAttr_AddPrj(index, iindex) { |
| | | var param = { |
| | |
| | | AddPer(data, param) { |
| | | // console.log(param); |
| | | // console.log(data); |
| | | $this.$data.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name; |
| | | $this.$data.classAttrList[param.index].Attr[param.iindex].ValID = data[0].ID + ';' + |
| | | $this.classAttrList[param.index].Attr[param.iindex].Value = data[0].Name; |
| | | $this.classAttrList[param.index].Attr[param.iindex].ValID = data[0].ID + ';' + |
| | | data[0].Name; |
| | | |
| | | var eventid = $this.$data.classAttrList[param.index].Attr[param.iindex].action; |
| | | var eventid = $this.classAttrList[param.index].Attr[param.iindex].action; |
| | | if (eventid) { |
| | | eventid = eventid.trim(); |
| | | if (eventid) { |
| | |
| | | rclsid: "", |
| | | robjid: "", |
| | | userlogin: "", |
| | | clsid: $this.$data.param.clsid, |
| | | clsid: $this.param.clsid, |
| | | objid: "", |
| | | attr: [], |
| | | dataJson: [], |
| | | } |
| | | |
| | | // var data_attr = $this.$data.classAttrList[param.index].Attr[param.iindex]; |
| | | // var data_attr = $this.classAttrList[param.index].Attr[param.iindex]; |
| | | $this.DataObjRunCustomEvent(info); |
| | | } |
| | | } |
| | |
| | | }); |
| | | }, |
| | | sava() { |
| | | if (this.$data.edit_ok_event) |
| | | if (this.edit_ok_event) |
| | | this.OKDataObjRunCustomEvent(); |
| | | else |
| | | this.add(); |
| | |
| | | mask: true |
| | | }); |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | } |
| | | var enviroment = { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.clsid, // 功能点主数据类标识 |
| | | cls_id: this.param.clsid, // 功能点主数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.clsid, |
| | | cls_id: this.param.clsid, |
| | | } |
| | | }; |
| | | |
| | | var dataInfo = { |
| | | class_id: this.$data.param.clsid, |
| | | class_id: this.param.clsid, |
| | | data_obj_id: '', |
| | | masterclsid: '', |
| | | req: JSON.stringify(req), |
| | |
| | | icon: "success", |
| | | duration: 3000 |
| | | }); |
| | | |
| | | // this.class_attr_init(); |
| | | //刷新 |
| | | uni.redirectTo({ |
| | | url: '../modal/classAttr?param=' + JSON.stringify(this.param) + |
| | | "&titlename=" + this.title |
| | | }); |
| | | //this.class_attr_init(); |
| | | |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | |
| | | }); |
| | | }, |
| | | class_attr_init() { |
| | | const attrlist = this.$data.classGridStyle.StyleDef?.show_style || [] |
| | | const attrlist = this.classGridStyle.StyleDef?.show_style || [] |
| | | var newattrlist = []; |
| | | if (this.$data.classAttrList.length > 0) { |
| | | if (this.classAttrList.length > 0) { |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var open = attrlist[i].open; |
| | | var name = attrlist[i].attrgroup_name; |
| | | var attrs = attrlist[i].attrs; |
| | | for (var s = 0; s < this.$data.classAttrList.length; s++) { |
| | | var clsattr = this.$data.classAttrList[s]; |
| | | for (var s = 0; s < this.classAttrList.length; s++) { |
| | | var clsattr = this.classAttrList[s]; |
| | | if (name == clsattr.Name) { |
| | | var attr = []; |
| | | for (var j = 0; j < attrs.length; j++) { |
| | |
| | | ca.Value = '请选择'; |
| | | if (utils.classUtils.attrTypeIsBool(ca.Type)) |
| | | ca.Value = false; |
| | | if (ca.hidden != true) { |
| | | if (utils.classUtils.attrTypeIsString(ca.Type) || utils.classUtils |
| | | .attrTypeIsInt(ca.Type) || utils.classUtils.attrTypeIsFloat(ca.Type)) { |
| | | if (this.focusField == "") { |
| | | this.setData({ |
| | | focusField: `${newattrlist.length}-${attr.length}` |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | attr.push(ca); |
| | | } |
| | |
| | | Order: clsattr.Order, |
| | | Open: open, |
| | | Attr: attr, |
| | | control_style: this.$data.classGridStyle.StyleDef.control_style, |
| | | title_p_wdith: this.$data.classGridStyle.StyleDef.title_p_wdith |
| | | control_style: this.classGridStyle.StyleDef.control_style, |
| | | title_p_wdith: this.classGridStyle.StyleDef.title_p_wdith |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | if (newattrlist.length > 0) { |
| | | this.$data.classAttrList = newattrlist; |
| | | this.classAttrList = newattrlist; |
| | | } |
| | | var req = []; |
| | | |
| | |
| | | }); |
| | | } |
| | | } |
| | | var eventlist = this.$data.classGridStyle.StyleDef.event; |
| | | var eventlist = this.classGridStyle.StyleDef.event; |
| | | |
| | | if (eventlist) { |
| | | if (eventlist.length > 0) { |
| | | for (var i = 0; i < eventlist.length; i++) { |
| | | if (eventlist[i].event_id == 'before_ok') { |
| | | this.$data.edit_ok_event = eventlist[i]; |
| | | this.edit_ok_event = eventlist[i]; |
| | | } else if (eventlist[i].event_id == 'initial') { |
| | | this.$data.edit_inital_event = eventlist[i]; |
| | | this.edit_inital_event = eventlist[i]; |
| | | } else if (eventlist[i].event_id == 'before_select_compose') { |
| | | this.$data.edit_select_compose_event = eventlist[i].scrip_id; |
| | | this.$data.edit_compose_cls_id = eventlist[i].compose_cls_id; |
| | | this.edit_select_compose_event = eventlist[i].scrip_id; |
| | | this.edit_compose_cls_id = eventlist[i].compose_cls_id; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | console.log(req); |
| | | if (this.$data.edit_inital_event) { |
| | | var eventid = this.$data.edit_inital_event.scrip_id; |
| | | if (this.edit_inital_event) { |
| | | var eventid = this.edit_inital_event.scrip_id; |
| | | var info = { |
| | | eventid: eventid, |
| | | edtype: "0", |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | } |
| | | this.ini_DataObjRunCustomEvent(info); |
| | | } |
| | | |
| | | console.log(this.$data.classGridStyle); |
| | | console.log(this.$data.classAttrList); |
| | | console.log(this.classGridStyle); |
| | | console.log(this.classAttrList); |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | |
| | | }, |
| | | ini_DataObjRunCustomEvent(info) { |
| | | var param = { |
| | | EditStyle: this.$data.param.Edit_dlg.Name, |
| | | ViewStyle: this.$data.param.Edit_dlg.Name, |
| | | EditStyle: this.param.Edit_dlg.Name, |
| | | ViewStyle: this.param.Edit_dlg.Name, |
| | | NotTriggerSysEvent: 0, |
| | | enviroment: { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.clsid, // 功能点主数据类标识 |
| | | cls_id: this.param.clsid, // 功能点主数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.clsid, // button=bottom时 master的cls_id |
| | | cls_id: this.param.clsid, // button=bottom时 master的cls_id |
| | | //obj_id: '' // button=bottom时 master的obj_id |
| | | } |
| | | } |
| | |
| | | if (value) { |
| | | console.log(value); |
| | | for (var i = 0; i < value.length; i++) { |
| | | for (var a = 0; a < this.$data.classAttrList.length; a++) { |
| | | for (var l = 0; l < this.$data.classAttrList[a].Attr.length; l++) { |
| | | var ca = this.$data.classAttrList[a].Attr[l]; |
| | | for (var a = 0; a < this.classAttrList.length; a++) { |
| | | for (var l = 0; l < this.classAttrList[a].Attr.length; l++) { |
| | | var ca = this.classAttrList[a].Attr[l]; |
| | | if (value[i].attr == ca.Name) { |
| | | if (utils.classUtils.attrTypeIsDict(ca.Type)) { |
| | | var dictItemList = []; |
| | |
| | | } |
| | | |
| | | var length = 0; |
| | | if (!this.$data.refdatastore.filter(function(s) { |
| | | if (!this.refdatastore.filter(function(s) { |
| | | return value[i].attr == s.attr |
| | | }).length) { |
| | | length = 1; |
| | | this.$data.refdatastore.push(value[i]); |
| | | this.refdatastore.push(value[i]); |
| | | } |
| | | if (length == 0) { |
| | | for (var j = 0; j < this.$data.refdatastore.length; j++) { |
| | | if (this.$data.refdatastore[j].attr == value[i].attr) { |
| | | this.$data.refdatastore[j].value = value[i].value; |
| | | for (var j = 0; j < this.refdatastore.length; j++) { |
| | | if (this.refdatastore[j].attr == value[i].attr) { |
| | | this.refdatastore[j].value = value[i].value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (action_type == 'open_select_userdlg') { |
| | | } else if (action_type == 'open_select_userdlg') { |
| | | uni.showModal({ |
| | | title: "错误2.2", |
| | | content: "open_select_userdlg这个action_type还未处理!", |
| | |
| | | var $this = this; |
| | | var enviroment = { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.clsid, // 功能点主数据类标识 |
| | | cls_id: this.param.clsid, // 功能点主数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.clsid, // button=bottom时 master的cls_id |
| | | cls_id: this.param.clsid, // button=bottom时 master的cls_id |
| | | //obj_id: '' // button=bottom时 master的obj_id |
| | | } |
| | | }; |
| | | if (data_attr) { |
| | | enviroment.edit_dlg = { |
| | | type: 'small', //小窗口 |
| | | class_id: this.$data.param.clsid, //当前数据类id |
| | | class_id: this.param.clsid, //当前数据类id |
| | | } |
| | | if (data_attr) { |
| | | enviroment.edit_dlg.form_control = { //所属的表单控件 |
| | |
| | | attr: JSON.stringify(info.attr), |
| | | extinfo: JSON.stringify(enviroment), |
| | | inputparameter: "", |
| | | global_attr: JSON.stringify(this.$data.global_attr), |
| | | global_attr: JSON.stringify(this.global_attr), |
| | | dataJson: JSON.stringify(info.dataJson) |
| | | } |
| | | console.log(dataInfo); |
| | |
| | | var result = action.value; |
| | | for (var i = 0; i < result.length; i++) { |
| | | if (result[i].choice_list) { |
| | | for (var c = 0; c < $this.$data.classAttrList.length; c++) { |
| | | var attr = $this.$data.classAttrList[c].Attr; |
| | | for (var c = 0; c < $this.classAttrList.length; c++) { |
| | | var attr = $this.classAttrList[c].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | if (attr[j].Name == result[i].attr) { |
| | | if (utils.classUtils.attrTypeIsDict(attr[j].Type)) { |
| | |
| | | } |
| | | } |
| | | } |
| | | for (var c = 0; c < $this.$data.classAttrList.length; c++) { |
| | | var attr = $this.$data.classAttrList[c].Attr; |
| | | for (var c = 0; c < $this.classAttrList.length; c++) { |
| | | var attr = $this.classAttrList[c].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | console.log(attr[j].Name + '==' + result[i].attr); |
| | | if (attr[j].Name == result[i].attr) { |
| | |
| | | } |
| | | } |
| | | var length = 0; |
| | | if (!$this.$data.refdatastore.filter(function(s) { |
| | | if (!$this.refdatastore.filter(function(s) { |
| | | return result[i].attr == s.attr |
| | | }).length) { |
| | | length = 1; |
| | | $this.$data.refdatastore.push(result[i]); |
| | | $this.refdatastore.push(result[i]); |
| | | } |
| | | if (length == 0) { |
| | | for (var j = 0; j < $this.$data.refdatastore.length; j++) { |
| | | if ($this.$data.refdatastore[j].attr == result[i].attr) { |
| | | $this.$data.refdatastore[j].value = result[i].value; |
| | | for (var j = 0; j < $this.refdatastore.length; j++) { |
| | | if ($this.refdatastore[j].attr == result[i].attr) { |
| | | $this.refdatastore[j].value = result[i].value; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } else if (data.action[i].action_type == 'set_global_attr') { |
| | | $this.$data.global_attr = data.action[i].value || []; |
| | | $this.global_attr = data.action[i].value || []; |
| | | } |
| | | } |
| | | } |
| | |
| | | if (data.result) { |
| | | var result = data.result; |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var c = 0; c < $this.$data.classAttrList.length; c++) { |
| | | var attr = $this.$data.classAttrList[c].Attr; |
| | | for (var c = 0; c < $this.classAttrList.length; c++) { |
| | | var attr = $this.classAttrList[c].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | if (attr[j].Name == result[i].attr) { |
| | | attr[j].Value = result[i].value; |
| | |
| | | } |
| | | |
| | | var length = 0; |
| | | if (!$this.$data.refdatastore.filter(function(s) { |
| | | if (!$this.refdatastore.filter(function(s) { |
| | | return result[i].attr == s.attr |
| | | }).length) { |
| | | length = 1; |
| | | $this.$data.refdatastore.push(result[i]); |
| | | $this.refdatastore.push(result[i]); |
| | | } |
| | | if (length == 0) { |
| | | for (var j = 0; j < $this.$data.refdatastore.length; j++) { |
| | | if ($this.$data.refdatastore[j].attr == result[i].attr) { |
| | | $this.$data.refdatastore[j].value = result[i].value; |
| | | for (var j = 0; j < $this.refdatastore.length; j++) { |
| | | if ($this.refdatastore[j].attr == result[i].attr) { |
| | | $this.refdatastore[j].value = result[i].value; |
| | | } |
| | | } |
| | | } |
| | |
| | | OKDataObjRunCustomEvent() { |
| | | var enviroment = { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.clsid, // 功能点主数据类标识 |
| | | cls_id: this.param.clsid, // 功能点主数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.clsid, // button=bottom时 master的cls_id |
| | | cls_id: this.param.clsid, // button=bottom时 master的cls_id |
| | | |
| | | } |
| | | }; |
| | | |
| | | var eventid = this.$data.edit_ok_event.scrip_id; |
| | | var eventid = this.edit_ok_event.scrip_id; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | } |
| | | } |
| | | |
| | | if (this.$data.refdatastore.length > 0) { |
| | | for (var i = 0; i < this.$data.refdatastore.length; i++) { |
| | | if (this.refdatastore.length > 0) { |
| | | for (var i = 0; i < this.refdatastore.length; i++) { |
| | | if (!req.filter(function(s) { |
| | | return this.$data.refdatastore[i].attr == s.name |
| | | return this.refdatastore[i].attr == s.name |
| | | }).length) { |
| | | length = 1; |
| | | req.push({ |
| | | 'attr': this.$data.refdatastore[i].attr, |
| | | 'value': this.$data.refdatastore[i].value |
| | | 'attr': this.refdatastore[i].attr, |
| | | 'value': this.refdatastore[i].value |
| | | }); |
| | | } |
| | | } |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: "", |
| | | attr: req, |
| | | } |
| | |
| | | objid: info.objid, |
| | | attr: JSON.stringify(info.attr), |
| | | extinfo: JSON.stringify(enviroment), |
| | | global_attr: JSON.stringify(this.$data.global_attr) |
| | | global_attr: JSON.stringify(this.global_attr) |
| | | } |
| | | console.log(dataInfo); |
| | | dataObjRunCustomEvent(dataInfo).then(data => { |
| | |
| | | for (var i = 0; i < result.length; i++) { |
| | | // self.class_attr_ele.find('.attr_field[data-field="' + result[i].attr + '"]').val(result[i].value).data('val', result[i].value); |
| | | var length = 0; |
| | | if (!this.$data.refdatastore.filter(function(s) { |
| | | if (!this.refdatastore.filter(function(s) { |
| | | return result[i].attr == s.attr |
| | | }).length) { |
| | | length = 1; |
| | | this.$data.refdatastore.push(result[i]); |
| | | this.refdatastore.push(result[i]); |
| | | } |
| | | if (length == 0) { |
| | | for (var j = 0; j < this.$data.refdatastore.length; j++) { |
| | | if (this.$data.refdatastore[j].attr == result[i].attr) { |
| | | this.$data.refdatastore[j].value = result[i].value; |
| | | for (var j = 0; j < this.refdatastore.length; j++) { |
| | | if (this.refdatastore[j].attr == result[i].attr) { |
| | | this.refdatastore[j].value = result[i].value; |
| | | } |
| | | } |
| | | } |
| | |
| | | var $this = this; |
| | | var enviroment = { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.clsid, // 功能点主数据类标识 |
| | | cls_id: this.param.clsid, // 功能点主数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.clsid, // button=bottom时 master的cls_id |
| | | cls_id: this.param.clsid, // button=bottom时 master的cls_id |
| | | //obj_id: '' // button=bottom时 master的obj_id |
| | | } |
| | | }; |
| | | var req = []; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.classAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | // if (this.$data.refdatastore.length > 0) { |
| | | // for (var i = 0; i < this.$data.refdatastore.length; i++) { |
| | | // if (this.refdatastore.length > 0) { |
| | | // for (var i = 0; i < this.refdatastore.length; i++) { |
| | | // if (!req.filter(function (s) { |
| | | // return $this.$data.refdatastore[i].attr == s.name |
| | | // return $this.refdatastore[i].attr == s.name |
| | | // }).length) { |
| | | // length = 1; |
| | | // req.push({ 'attr': this.$data.refdatastore[i].attr, 'val': this.$data.refdatastore[i].value }); |
| | | // req.push({ 'attr': this.refdatastore[i].attr, 'val': this.refdatastore[i].value }); |
| | | // } |
| | | // } |
| | | // } |
| | | var extinfo = enviroment; |
| | | extinfo.edit_dlg = { |
| | | type: 'small', //小窗口 |
| | | class_id: this.$data.param.clsid, //当前数据类id |
| | | class_id: this.param.clsid, //当前数据类id |
| | | } |
| | | if (data_attr) { |
| | | extinfo.edit_dlg.form_control = { //所属的表单控件 |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.clsid, |
| | | clsid: this.param.clsid, |
| | | objid: '', |
| | | attr: JSON.stringify(req), |
| | | extinfo: JSON.stringify(extinfo), |
| | | global_attr: JSON.stringify(this.$data.global_attr) |
| | | global_attr: JSON.stringify(this.global_attr) |
| | | } |
| | | console.log(dataInfo); |
| | | dataObjRunCustomEvent(dataInfo).then(data => { |
| | |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: $this.$data.param.clsid, |
| | | clsid: $this.param.clsid, |
| | | objid: "", |
| | | attr: param.req, |
| | | inputparameter: data, |
| | |
| | | } else if (action.action_type == 'open_common_dlg') { |
| | | var $this = this; |
| | | if (val.common_dlg_id == 'check_list') { |
| | | $this.$data.check_list = val.config; |
| | | $this.check_list = val.config; |
| | | if (val.config.appear_style == 'sideslip') //判断是否是侧滑 |
| | | $this.$data.popupType = 'right'; |
| | | $this.popupType = 'right'; |
| | | else |
| | | $this.$data.popupType = 'center' |
| | | $this.popupType = 'center' |
| | | // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 |
| | | $this.$refs.popup.open($this.$data.popupType); |
| | | $this.$refs.popup.open($this.popupType); |
| | | var popupParam = { |
| | | index: index, |
| | | iindex: iindex, |
| | |
| | | req: req, |
| | | data_attr: data_attr |
| | | } |
| | | $this.$data.popupParam = popupParam; |
| | | $this.popupParam = popupParam; |
| | | } |
| | | } else if (action.action_type == 'open_project_query_dlg') { |
| | | //console.log(action.value.select_range); |
| | |
| | | .stringify(param_), |
| | | events: { |
| | | AddPer(data, param) { |
| | | $this.$data.classAttrList[param.index].Attr[param |
| | | $this.classAttrList[param.index].Attr[param |
| | | .iindex].Value = data[0].Name; |
| | | $this.$data.classAttrList[param.index].Attr[param |
| | | $this.classAttrList[param.index].Attr[param |
| | | .iindex].ValID = data[0].ID + ';' + data[0] |
| | | .Name; |
| | | var callback_eventid = param.button_callback.trim(); |
| | |
| | | rclsid: "", |
| | | robjid: "", |
| | | userlogin: "", |
| | | clsid: $this.$data.param.clsid, |
| | | clsid: $this.param.clsid, |
| | | objid: "", |
| | | attr: param.req, |
| | | dataJson: [], |
| | |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | /* background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | color: #fff; */ |
| | | background: #fff; |
| | | color: #000; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | |
| | | .popup-footer { |
| | | float: right; |
| | | position: absolute; |
| | | bottom: 0; |
| | | bottom: 10rpx; |
| | | right: 20rpx; |
| | | } |
| | | |
| | |
| | | margin-top: 50rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | /* background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | color: #fff; */ |
| | | background: #fff; |
| | | color: #000; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: right; */ |