| | |
| | | } |
| | | }, |
| | | class_attr_init(){ |
| | | var attrlist = this.$data.classGridStyle.StyleDef.show_style |
| | | var attrlist = this.$data.classGridStyle.StyleDef.show_style; |
| | | var newattrlist = []; |
| | | if (this.$data.classAttrList.length > 0) { |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | |
| | | var attrs = attrlist[i].attrs; |
| | | for (var s = 0; s < this.$data.classAttrList.length; s++) { |
| | | var clsattr = this.$data.classAttrList[s]; |
| | | if (name == clsattr.Name) { |
| | | // if (name == clsattr.Name) { |
| | | var attr = []; |
| | | for (var j = 0; j < attrs.length; j++) { |
| | | for (var l = 0; l < clsattr.Attr.length; l++) { |
| | |
| | | Font:this.$data.classGridStyle.StyleDef.Font?this.$data.classGridStyle.StyleDef.Font:{}, |
| | | Bk_Color:this.$data.classGridStyle.StyleDef.Bk_Color?this.$data.classGridStyle.StyleDef.Bk_Color:'#FFFFFF', |
| | | Text_Color:this.$data.classGridStyle.StyleDef.Text_Color?this.$data.classGridStyle.StyleDef.Text_Color:'#000000' |
| | | }) |
| | | } |
| | | }); |
| | | // } |
| | | } |
| | | } |
| | | if (newattrlist.length > 0) { |
| | |
| | | } |
| | | }, |
| | | subClass_attr_init(){ |
| | | var attrlist = this.$data.subClassGridStyle.StyleDef.show_style |
| | | var attrlist = this.$data.subClassGridStyle.StyleDef.show_style; |
| | | var newattrlist = []; |
| | | if (this.$data.subClassAttrList.length > 0) { |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | |
| | | var attrs = attrlist[i].attrs; |
| | | for (var s = 0; s < this.$data.subClassAttrList.length; s++) { |
| | | var clsattr = this.$data.subClassAttrList[s]; |
| | | if (name == clsattr.Name) { |
| | | // if (name == clsattr.Name) { |
| | | var attr = []; |
| | | for (var j = 0; j < attrs.length; j++) { |
| | | for (var l = 0; l < clsattr.Attr.length; l++) { |
| | |
| | | Font:this.$data.subClassGridStyle.StyleDef.Font?this.$data.subClassGridStyle.StyleDef.Font:{}, |
| | | Bk_Color:this.$data.subClassGridStyle.StyleDef.Bk_Color?this.$data.subClassGridStyle.StyleDef.Bk_Color:'#FFFFFF', |
| | | Text_Color:this.$data.subClassGridStyle.StyleDef.Text_Color?this.$data.subClassGridStyle.StyleDef.Text_Color:'#000000' |
| | | }) |
| | | } |
| | | }); |
| | | // } |
| | | } |
| | | } |
| | | if (newattrlist.length > 0) { |
| | |
| | | } |
| | | |
| | | enviroment = Base64.encode(JSON.stringify(enviroment));//将字符串转换为base64编码 |
| | | var inputParamter=info.inputParamter; |
| | | if(info.inputParamter){ |
| | | info.inputParamter = Base64.encode(JSON.stringify(info.inputParamter));//将字符串转换为base64编码 |
| | | } |
| | |
| | | for (var i = 0; i < 5; i++) { //生成5位随机数 |
| | | rand += Math.floor(Math.random() * 10); |
| | | } |
| | | if (info.inputParamter[0].attr) { |
| | | if (info.inputParamter[0].attr == "mast_input_3037") //判断是主数据类扫码查询数据 |
| | | if (inputParamter[0].attr) { |
| | | if (inputParamter[0].attr == "mast_input_3037") //判断是主数据类扫码查询数据 |
| | | scanCodeVal = "mast_input_3037-" + rand; |
| | | } |
| | | if (info.attr[0].attr) { |
| | |
| | | // $this.$data.subPanelList[s].subClassAttr=list_1; |
| | | } |
| | | } |
| | | |
| | | var length = 0; |
| | | if (!$this.$data.refdatastore.filter(function (s) { |
| | | return result[i].attr == s.attr |
| | |
| | | if (data.result) { |
| | | let list_1 = JSON.parse(JSON.stringify(this.$data.subClassAttrList)); |
| | | var scanCodeVal = $this.$data.scanCodeVal; |
| | | if(info.inputParamter[0].attr=="mast_input_3037") |
| | | scanCodeVal = "mast_input_3037-"+ii; |
| | | var rand = ''; |
| | | for (var i = 0; i < 5; i++) { //生成5位随机数 |
| | | rand += Math.floor(Math.random() * 10); |
| | | } |
| | | if (inputParamter[0].attr) { |
| | | if (inputParamter[0].attr == "mast_input_3037") //判断是主数据类扫码查询数据 |
| | | scanCodeVal = "mast_input_3037-" + rand; |
| | | } |
| | | if (info.attr[0].attr) { |
| | | if (info.attr[0].attr == "mast_input_3037") //判断是主数据类扫码查询数据 |
| | | scanCodeVal = "mast_input_3037-" + rand; |
| | | } |
| | | $this.$data.subPanelList.push({ |
| | | scanCodeVal:scanCodeVal, |
| | | subClassAttr:list_1 |