cuiqian2004
2025-08-01 fa73abee6209cd6f7c62c61c271826f7d413035d
pages/modal/3037.vue
@@ -2628,152 +2628,154 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  if (data.result_type == 2) {
                  if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                     if (data.result_type == 2) {
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                        }
                     }
                  }
                  try {
                     var actionlist =
                        data.action || []
                     if (actionlist) {
                        for (var j =
                              0; j <
                           actionlist
                           .length; j++
                        ) {
                           var action =
                              actionlist[
                                 j]
                           var action_type =
                              action
                              .action_type;
                           var value =
                              action
                              .value;
                           if (action_type ==
                              'set_dlg_attr'
                     try {
                        var actionlist =
                           data.action || []
                        if (actionlist) {
                           for (var j =
                                 0; j <
                              actionlist
                              .length; j++
                           ) {
                              if (
                                 value) {
                                 var val =
                                    value;
                                 if (typeof value ==
                                    'string'
                                 ) {
                                    val =
                                       JSON
                                       .parse(
                                          value
                              var action =
                                 actionlist[
                                    j]
                              var action_type =
                                 action
                                 .action_type;
                              var value =
                                 action
                                 .value;
                              if (action_type ==
                                 'set_dlg_attr'
                              ) {
                                 if (
                                    value) {
                                    var val =
                                       value;
                                    if (typeof value ==
                                       'string'
                                    ) {
                                       val =
                                          JSON
                                          .parse(
                                             value
                                          );
                                    }
                                    console
                                       .log(
                                          val
                                       );
                                 }
                                 console
                                    .log(
                                       val
                                    );
                                 for (
                                    var i =
                                       0; i <
                                    val
                                    .length; i++
                                 ) {
                                    for (
                                       var a =
                                          0; a <
                                       this.classAttrList
                                       .length; a++
                                       var i =
                                          0; i <
                                       val
                                       .length; i++
                                    ) {
                                       for (
                                          var l =
                                             0; l <
                                          this.classAttrList[
                                             a
                                          ]
                                          .Attr
                                          .length; l++
                                          var a =
                                             0; a <
                                          this.classAttrList
                                          .length; a++
                                       ) {
                                          var ca =
                                          for (
                                             var l =
                                                0; l <
                                             this.classAttrList[
                                                a
                                             ]
                                             .Attr[
                                                l
                                             ];
                                          if (val[
                                                i]
                                             .attr ==
                                             ca
                                             .Name
                                             .Attr
                                             .length; l++
                                          ) {
                                             if (utils.classUtils.attrTypeIsDict(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,
                                                         "CN_S_VALUE": val,
                                                         "Name": val,
                                                         "label": val,
                                                         "value": val
                                                      });
                                             var ca =
                                                this.classAttrList[
                                                   a
                                                ]
                                                .Attr[
                                                   l
                                                ];
                                             if (val[
                                                   i]
                                                .attr ==
                                                ca
                                                .Name
                                             ) {
                                                if (utils.classUtils.attrTypeIsDict(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,
                                                            "CN_S_VALUE": val,
                                                            "Name": val,
                                                            "label": val,
                                                            "value": val
                                                         });
                                                   }
                                                   ca.dictitem =
                                                      dictItemList;
                                                   // attr[j].dictitem = val[i].choice_list;
                                                } else {
                                                   // ca.value = val[i].value;
                                                }
                                                ca.dictitem =
                                                   dictItemList;
                                                // attr[j].dictitem = val[i].choice_list;
                                             } else {
                                                // ca.value = val[i].value;
                                             }
                                          }
                                       }
                                    }
                                    }
                                 }
                              }
                           }
                           if (action_type ==
                              'open_select_userdlg'
                           ) {
                              uni.showModal({
                                 title: this.translateSys('error') + " 2.2",
                                 content: "open_select_userdlg这个action_type还未处理!",
                                 showCancel: false,
                                 confirmText: this.translateSys('close')
                              });
                              if (action_type ==
                                 'open_select_userdlg'
                              ) {
                                 uni.showModal({
                                    title: this.translateSys('error') + " 2.2",
                                    content: "open_select_userdlg这个action_type还未处理!",
                                    showCancel: false,
                                    confirmText: this.translateSys('close')
                                 });
                              }
                           }
                        }
                     } catch (ex) {
                        let actionList = (data.action || []).map(a => a.action_type).join(';')
                        let tip = typeof ex == 'string' ? ex : ex.message
                        tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: tip,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                        console.log(ex)
                        return
                     }
                  } catch (ex) {
                     let actionList = (data.action || []).map(a => a.action_type).join(';')
                     let tip = typeof ex == 'string' ? ex : ex.message
                     tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }
@@ -2908,137 +2910,200 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  if (data.result_type == 2) {
                     var result = data
                        .result || []
                     for (var i = 0; i <
                        result
                        .length; i++) {
                        for (var c =
                              0; c <
                           $this.classAttrList
                           .length; c++
                        ) {
                           var attr =
                              $this
                              .classAttrList[
                                 c]
                              .Attr;
                           for (var j =
                                 0; j <
                              attr
                              .length; j++
                  if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                     if (data.result_type == 2) {
                        var result = data
                           .result || []
                        for (var i = 0; i <
                           result
                           .length; i++) {
                           for (var c =
                                 0; c <
                              $this.classAttrList
                              .length; c++
                           ) {
                              if (attr[
                                    j
                                 ]
                                 .Name ==
                                 result[
                                    i
                                 ]
                                 .attr
                              var attr =
                                 $this
                                 .classAttrList[
                                    c]
                                 .Attr;
                              for (var j =
                                    0; j <
                                 attr
                                 .length; j++
                              ) {
                                 attr[
                                       j]
                                    .Value =
                                 if (attr[
                                       j
                                    ]
                                    .Name ==
                                    result[
                                       i
                                    ]
                                    .value;
                                    .attr
                                 ) {
                                    attr[
                                          j]
                                       .Value =
                                       result[
                                          i
                                       ]
                                       .value;
                                 }
                              }
                           }
                        }
                        var length = 0;
                        if (!$this
                           .refdatastore
                           .filter(
                              function(
                                 s
                              ) {
                                 return result[
                           var length = 0;
                           if (!$this
                              .refdatastore
                              .filter(
                                 function(
                                    s
                                 ) {
                                    return result[
                                          i
                                       ]
                                       .attr ==
                                       s
                                       .attr
                                 })
                              .length) {
                              length = 1;
                              $this.refdatastore
                                 .push(
                                    result[
                                       i
                                    ]
                                    .attr ==
                                    s
                                    .attr
                              })
                           .length) {
                           length = 1;
                           $this.refdatastore
                              .push(
                                 result[
                                    i
                                 ]
                              );
                        }
                        if (length ==
                           0) {
                           for (var j =
                                 0; j <
                              $this
                              .refdatastore
                              .length; j++
                           ) {
                              if ($this
                                 .refdatastore[
                                    j
                                 ]
                                 .attr ==
                                 result[
                                    i
                                 ]
                                 .attr
                              ) {
                                 );
                           }
                           if (length ==
                              0) {
                              for (var j =
                                    0; j <
                                 $this
                                 .refdatastore
                                 .length; j++
                              ) {
                                 if ($this
                                    .refdatastore[
                                       j
                                    ]
                                    .value =
                                    .attr ==
                                    result[
                                       i
                                    ]
                                    .value;
                                    .attr
                                 ) {
                                    $this
                                       .refdatastore[
                                          j
                                       ]
                                       .value =
                                       result[
                                          i
                                       ]
                                       .value;
                                 }
                              }
                           }
                        }
                     }
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                        }
                     }
                  }
                  try {
                     var actionlist = data.action || []
                     for (var i = 0; i <
                        actionlist
                        .length; i++) {
                        var action =
                           actionlist[
                              i];
                        if (action
                           .action_type ==
                           'set_dlg_attr'
                        ) {
                           var result =
                              action
                              .value;
                           for (var i =
                                 0; i <
                              result
                              .length; i++
                     try {
                        var actionlist = data.action || []
                        for (var i = 0; i <
                           actionlist
                           .length; i++) {
                           var action =
                              actionlist[
                                 i];
                           if (action
                              .action_type ==
                              'set_dlg_attr'
                           ) {
                              if (result[
                                    i
                                 ]
                                 .choice_list
                              var result =
                                 action
                                 .value;
                              for (var i =
                                    0; i <
                                 result
                                 .length; i++
                              ) {
                                 if (result[
                                       i
                                    ]
                                    .choice_list
                                 ) {
                                    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)) {
                                                var
                                                   dictItemList = [];
                                                for (
                                                   var d in
                                                      result[
                                                         i
                                                      ]
                                                      .choice_list
                                                ) {
                                                   var val =
                                                      result[
                                                         i
                                                      ]
                                                      .choice_list[
                                                         d
                                                      ];
                                                   dictItemList
                                                      .push({
                                                         "CN_S_NAME": val,
                                                         "CN_S_VALUE": val,
                                                         "Name": val,
                                                         "label": val,
                                                         "value": val
                                                      });
                                                }
                                                attr[
                                                      j]
                                                   .dictitem =
                                                   dictItemList;
                                                // attr[j].dictitem = result[i].choice_list;
                                             }
                                          }
                                       }
                                    }
                                 }
                                 for (
                                    var c =
                                       0; c <
@@ -3056,6 +3121,18 @@
                                       attr
                                       .length; j++
                                    ) {
                                       console
                                          .log(
                                             attr[
                                                j
                                             ]
                                             .Name +
                                             '==' +
                                             result[
                                                i
                                             ]
                                             .attr
                                          );
                                       if (attr[
                                             j
                                          ]
@@ -3065,178 +3142,104 @@
                                          ]
                                          .attr
                                       ) {
                                          if (utils.classUtils.attrTypeIsDict(attr[j].Type)) {
                                             var
                                                dictItemList = [];
                                             for (
                                                var d in
                                                   result[
                                                      i
                                                   ]
                                                   .choice_list
                                             ) {
                                                var val =
                                                   result[
                                                      i
                                                   ]
                                                   .choice_list[
                                                      d
                                                   ];
                                                dictItemList
                                                   .push({
                                                      "CN_S_NAME": val,
                                                      "CN_S_VALUE": val,
                                                      "Name": val,
                                                      "label": val,
                                                      "value": val
                                                   });
                                             }
                                             attr[
                                                   j]
                                                .dictitem =
                                                dictItemList;
                                             // attr[j].dictitem = result[i].choice_list;
                                          }
                                          attr[
                                                j]
                                             .Value =
                                             result[
                                                i
                                             ]
                                             .value;
                                       }
                                    }
                                 }
                                 0;
                                 if (!
                                    $this.refdatastore
                                    .filter(
                                       function(
                                          s
                                       ) {
                                          return result[
                                                i
                                             ]
                                             .attr ==
                                             s
                                             .attr
                                       }
                                    )
                                    .length
                                 ) {
                                    length
                                       =
                                       1;
                                    $this
                                       .refdatastore
                                       .push(
                                          result[
                                             i
                                          ]
                                       );
                                 }
                                 if (length ==
                                    0
                                 ) {
                                    for (
                                       var j =
                                          0; j <
                                       $this
                                       .refdatastore
                                       .length; j++
                                    ) {
                                       if ($this
                                          .refdatastore[
                                             j
                                          ]
                                          .attr ==
                                          result[
                                             i
                                          ]
                                          .attr
                                       ) {
                                          $this
                                             .refdatastore[
                                                j
                                             ]
                                             .value =
                                             result[
                                                i
                                             ]
                                             .value;
                                       }
                                    }
                                 }
                              }
                              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
                                    ) {
                                       attr[
                                             j]
                                          .Value =
                                          result[
                                             i
                                          ]
                                          .value;
                                    }
                                 }
                              }
                              0;
                              if (!
                                 $this.refdatastore
                                 .filter(
                                    function(
                                       s
                                    ) {
                                       return result[
                                             i
                                          ]
                                          .attr ==
                                          s
                                          .attr
                                    }
                                 )
                                 .length
                              ) {
                                 length
                                    =
                                    1;
                                 $this
                                    .refdatastore
                                    .push(
                                       result[
                                          i
                                       ]
                                    );
                              }
                              if (length ==
                                 0
                              ) {
                                 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.global_attr =
                                 data
                                 .action[
                                    i]
                                 .value || [];
                           }
                        } else if (data
                           .action[i]
                           .action_type ==
                           'set_global_attr'
                        ) {
                           $this.global_attr =
                              data
                              .action[
                                 i]
                              .value || [];
                        }
                     } catch (ex) {
                        let actionList = (data.action || []).map(a => a.action_type).join(';')
                        let tip = typeof ex == 'string' ? ex : ex.message
                        tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: tip,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                        console.log(ex)
                        return
                     }
                  } catch (ex) {
                     let actionList = (data.action || []).map(a => a.action_type).join(';')
                     let tip = typeof ex == 'string' ? ex : ex.message
                     tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }
@@ -3389,71 +3392,72 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  if (data.result_type == 2) {
                     var result = data.result || []
                     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.refdatastore
                           .filter(
                              function(
                                 s) {
                                 return result[
                                       i
                                    ]
                                    .attr ==
                                    s
                                    .attr
                              }).length
                  if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                     if (data.result_type == 2) {
                        var result = data.result || []
                        for (var i = 0; i <
                           result.length; i++
                        ) {
                           length = 1;
                           this.refdatastore.push(
                              result[
                                 i]
                           );
                        }
                        if (length == 0) {
                           for (var j =
                                 0; j < this
                              .refdatastore
                              .length; j++
                           // 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.refdatastore
                              .filter(
                                 function(
                                    s) {
                                    return result[
                                          i
                                       ]
                                       .attr ==
                                       s
                                       .attr
                                 }).length
                           ) {
                              if (this
                                 .refdatastore[
                                    j]
                                 .attr ==
                              length = 1;
                              this.refdatastore.push(
                                 result[
                                    i]
                                 .attr
                              );
                           }
                           if (length == 0) {
                              for (var j =
                                    0; j < this
                                 .refdatastore
                                 .length; j++
                              ) {
                                 this.refdatastore[
                                       j
                                    ]
                                    .value =
                                 if (this
                                    .refdatastore[
                                       j]
                                    .attr ==
                                    result[
                                       i
                                    ]
                                    .value;
                                       i]
                                    .attr
                                 ) {
                                    this.refdatastore[
                                          j
                                       ]
                                       .value =
                                       result[
                                          i
                                       ]
                                       .value;
                                 }
                              }
                           }
                        }
                     }
                     this.add();
                        this.add();
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                        }
                     }
                  }
               }
            }).catch(ex => {
@@ -3610,269 +3614,97 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  if (data.result_type == 2) {
                  if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                     if (data.result_type == 2) {
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     }
                  }
                  try {
                     var actions = data.action || []
                     for (var i =
                           0; i <
                        actions
                        .length; i++
                     ) {
                        var action =
                           actions[
                              i];
                        var val =
                           action
                           .value;
                        var enviroment =
                           JSON
                           .stringify(
                              enviroment
                           );
                        if (action
                           .action_type ==
                           'open_panel'
                        ) {
                           var d =
                              dialog({
                                 title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                    this.translateSys('tip'),
                                 content: action
                                    .action_type +
                                    '此action尚未处理!'
                              });
                           d
                              .show();
                        } else if (
                           action
                           .action_type ==
                           'open_select_userdlg'
                        ) {
                           var style =
                              val
                              .style;
                           // style == 'user' ? '选择人员' : style == 'department' ? '选择部门' : style == 'role' ? '选择角色' : ''
                           var $this =
                              this;
                           var param = {
                              index: index,
                              iindex: iindex,
                              button_callback: button_callback,
                              req: req,
                              data_attr: data_attr
                           }
                           uni.navigateTo({
                              url: '../selpsn/index?mulit=false&param=' +
                                 JSON
                                 .stringify(
                                    param
                                 ),
                              events: {
                                 AddPer(
                                    data,
                                    param
                                 ) {
                                    // console.log(param);
                                    console
                                       .log(
                                          data
                                       );
                                    var callback_eventid =
                                       param
                                       .button_callback
                                       .trim();
                                    var info = {
                                       eventid: callback_eventid,
                                       edtype: "0",
                                       projectid: '',
                                       rclsid: '',
                                       robjid: '',
                                       userlogin: '',
                                       clsid: $this
                                          .param
                                          .Master_Cls
                                          .ID,
                                       objid: "",
                                       attr: param
                                          .req,
                                       inputparameter: data
                                    }
                                    $this
                                       .DataObjRunCustomEvent(
                                          info,
                                          param
                                          .data_attr
                                       );
                                 }
                              }
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                        } else if (
                           action
                           .action_type ==
                           'open_data_query_dlg'
                        }
                     }
                     try {
                        var actions = data.action || []
                        for (var i =
                              0; i <
                           actions
                           .length; i++
                        ) {
                        } else if (
                           action
                           .action_type ==
                           'open_common_dlg'
                        ) {
                           var value =
                           var action =
                              actions[
                                 i];
                           var val =
                              action
                              .value;
                           var d =
                              dialog({
                                 title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                    this.translateSys('tip'),
                                 content: action
                                    .action_type +
                                    '此action尚未处理!'
                              });
                           d
                              .show();
                        } else if (
                           action
                           .action_type ==
                           'open_project_query_dlg'
                        ) {
                           //console.log(action.value.select_range);
                           //console.log(action.value.mulit_select);
                           var priRel =
                              '-1';
                           if (action
                              .value
                              .select_range ==
                              '全部相关'
                           )
                              priRel =
                              '0';
                           else if (
                              action
                              .value
                              .select_range ==
                              '我负责的项目'
                           )
                              priRel =
                              '1';
                           else if (
                              action
                              .value
                              .select_range ==
                              '我创建的'
                           )
                              priRel =
                              '2';
                           else if (
                              action
                              .value
                              .select_range ==
                              '我参与的' ||
                              action
                              .value
                              .select_range ==
                              '我参加的'
                           )
                              priRel =
                              '3';
                           else if (
                              action
                              .value
                              .select_range ==
                              '我关注的'
                           )
                              priRel =
                              '4';
                           else if (
                              action
                              .value
                              .select_range ==
                              '我下属的项目'
                           )
                              priRel =
                              '5';
                           var enviroment =
                              JSON
                              .stringify(
                                 enviroment
                              );
                           var $this =
                              this;
                           var param_ = {
                              index: index,
                              iindex: iindex,
                              button_callback: button_callback,
                              req: req
                           }
                           uni.navigateTo({
                              url: '../selPrj/index?relation=' +
                                 priRel +
                                 '&param=' +
                                 JSON
                                 .stringify(
                                    param_
                                 ),
                              events: {
                                 AddPer(
                                    data,
                                    param
                                 ) {
                                    $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 callback_eventid =
                           if (action
                              .action_type ==
                              'open_panel'
                           ) {
                              var d =
                                 dialog({
                                    title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                       this.translateSys('tip'),
                                    content: action
                                       .action_type +
                                       '此action尚未处理!'
                                 });
                              d
                                 .show();
                           } else if (
                              action
                              .action_type ==
                              'open_select_userdlg'
                           ) {
                              var style =
                                 val
                                 .style;
                              // style == 'user' ? '选择人员' : style == 'department' ? '选择部门' : style == 'role' ? '选择角色' : ''
                              var $this =
                                 this;
                              var param = {
                                 index: index,
                                 iindex: iindex,
                                 button_callback: button_callback,
                                 req: req,
                                 data_attr: data_attr
                              }
                              uni.navigateTo({
                                 url: '../selpsn/index?mulit=false&param=' +
                                    JSON
                                    .stringify(
                                       param
                                       .button_callback
                                       .trim();
                                    if (
                                       callback_eventid) {
                                    ),
                                 events: {
                                    AddPer(
                                       data,
                                       param
                                    ) {
                                       // console.log(param);
                                       console
                                          .log(
                                             data
                                          );
                                       var callback_eventid =
                                          param
                                          .button_callback
                                          .trim();
                                       var info = {
                                          eventid: callback_eventid,
                                          edtype: "2",
                                          projectid: data[
                                                0
                                             ]
                                             .ID,
                                          rclsid: "",
                                          robjid: "",
                                          userlogin: "",
                                          edtype: "0",
                                          projectid: '',
                                          rclsid: '',
                                          robjid: '',
                                          userlogin: '',
                                          clsid: $this
                                             .param
                                             .Master_Cls
@@ -3880,44 +3712,217 @@
                                          objid: "",
                                          attr: param
                                             .req,
                                          inputparameter: data
                                       }
                                       $this
                                          .DataObjRunCustomEvent(
                                             info
                                             info,
                                             param
                                             .data_attr
                                          );
                                    }
                                 }
                              }
                           });
                        } else {
                           var d =
                              dialog({
                                 title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                    this.translateSys('tip'),
                                 content: action
                                    .action_type +
                                    '此action尚未处理!'
                              });
                           d
                              .show();
                           } else if (
                              action
                              .action_type ==
                              'open_data_query_dlg'
                           ) {
                           } else if (
                              action
                              .action_type ==
                              'open_common_dlg'
                           ) {
                              var value =
                                 action
                                 .value;
                              var d =
                                 dialog({
                                    title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                       this.translateSys('tip'),
                                    content: action
                                       .action_type +
                                       '此action尚未处理!'
                                 });
                              d
                                 .show();
                           } else if (
                              action
                              .action_type ==
                              'open_project_query_dlg'
                           ) {
                              //console.log(action.value.select_range);
                              //console.log(action.value.mulit_select);
                              var priRel =
                                 '-1';
                              if (action
                                 .value
                                 .select_range ==
                                 '全部相关'
                              )
                                 priRel =
                                 '0';
                              else if (
                                 action
                                 .value
                                 .select_range ==
                                 '我负责的项目'
                              )
                                 priRel =
                                 '1';
                              else if (
                                 action
                                 .value
                                 .select_range ==
                                 '我创建的'
                              )
                                 priRel =
                                 '2';
                              else if (
                                 action
                                 .value
                                 .select_range ==
                                 '我参与的' ||
                                 action
                                 .value
                                 .select_range ==
                                 '我参加的'
                              )
                                 priRel =
                                 '3';
                              else if (
                                 action
                                 .value
                                 .select_range ==
                                 '我关注的'
                              )
                                 priRel =
                                 '4';
                              else if (
                                 action
                                 .value
                                 .select_range ==
                                 '我下属的项目'
                              )
                                 priRel =
                                 '5';
                              var $this =
                                 this;
                              var param_ = {
                                 index: index,
                                 iindex: iindex,
                                 button_callback: button_callback,
                                 req: req
                              }
                              uni.navigateTo({
                                 url: '../selPrj/index?relation=' +
                                    priRel +
                                    '&param=' +
                                    JSON
                                    .stringify(
                                       param_
                                    ),
                                 events: {
                                    AddPer(
                                       data,
                                       param
                                    ) {
                                       $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 callback_eventid =
                                          param
                                          .button_callback
                                          .trim();
                                       if (
                                          callback_eventid) {
                                          var info = {
                                             eventid: callback_eventid,
                                             edtype: "2",
                                             projectid: data[
                                                   0
                                                ]
                                                .ID,
                                             rclsid: "",
                                             robjid: "",
                                             userlogin: "",
                                             clsid: $this
                                                .param
                                                .Master_Cls
                                                .ID,
                                             objid: "",
                                             attr: param
                                                .req,
                                          }
                                          $this
                                             .DataObjRunCustomEvent(
                                                info
                                             );
                                       }
                                    }
                                 }
                              });
                           } else {
                              var d =
                                 dialog({
                                    title: '<i class="ace-icon fa fa-info-circle"></i> ' +
                                       this.translateSys('tip'),
                                    content: action
                                       .action_type +
                                       '此action尚未处理!'
                                 });
                              d
                                 .show();
                           }
                        }
                     } catch (ex) {
                        let actionList = (data.action || []).map(a => a.action_type).join(';')
                        let tip = typeof ex == 'string' ? ex : ex.message
                        tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: tip,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                        console.log(ex)
                        return
                     }
                  } catch (ex) {
                     let actionList = (data.action || []).map(a => a.action_type).join(';')
                     let tip = typeof ex == 'string' ? ex : ex.message
                     tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }
            }).catch(ex => {
@@ -4033,74 +4038,76 @@
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     if (data.result_type == 2) {
                     if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                        if (data.result_type == 2) {
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                        } else if (typeof data.result == 'string') {
                           if (data.result) {
                              uni.showModal({
                                 title: this.translateSys('tip'),
                                 content: data.result,
                                 showCancel: false,
                                 confirmText: this.translateSys('close')
                              });
                           }
                        }
                     }
                     try {
                        var actionlist = data.action || []
                        for (var j = 0; j < actionlist.length; j++) {
                           var action = actionlist[j]
                           var action_type = action.action_type;
                           var value = action.value;
                           if (action_type == 'set_dlg_attr') {
                              if (value) {
                                 var val = value;
                                 if (typeof value == 'string') {
                                    val = JSON.parse(value);
                                 }
                                 console.log(val);
                        try {
                           var actionlist = data.action || []
                           for (var j = 0; j < actionlist.length; j++) {
                              var action = actionlist[j]
                              var action_type = action.action_type;
                              var value = action.value;
                              if (action_type == 'set_dlg_attr') {
                                 if (value) {
                                    var val = value;
                                    if (typeof value == 'string') {
                                       val = JSON.parse(value);
                                    }
                                    console.log(val);
                                 for (var i = 0; i < val.length; i++) {
                                    for (var a = 0; a < this.subClassAttrList.length; a++) {
                                       for (var l = 0; l < this.subClassAttrList[a].Attr.length; l++) {
                                          var ca = this.subClassAttrList[a].Attr[l];
                                          if (val[i].attr == .Name) {
                                             if (utils.classUtils.attrTypeIsDict(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,
                                                      "CN_S_VALUE": val,
                                                      "Name": val,
                                                      "label": val,
                                                      "value": val
                                                   });
                                    for (var i = 0; i < val.length; i++) {
                                       for (var a = 0; a < this.subClassAttrList.length; a++) {
                                          for (var l = 0; l < this.subClassAttrList[a].Attr
                                             .length; l++) {
                                             var ca = this.subClassAttrList[a].Attr[l];
                                             if (val[i].attr == .Name) {
                                                if (utils.classUtils.attrTypeIsDict(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,
                                                         "CN_S_VALUE": val,
                                                         "Name": val,
                                                         "label": val,
                                                         "value": val
                                                      });
                                                   }
                                                   ca.dictitem = dictItemList;
                                                }
                                                ca.dictitem = dictItemList;
                                             }
                                             }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        } catch (ex) {
                           let actionList = (data.action || []).map(a => a.action_type).join(';')
                           let tip = typeof ex == 'string' ? ex : ex.message
                           tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: tip,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                           console.log(ex)
                           return
                        }
                     } catch (ex) {
                        let actionList = (data.action || []).map(a => a.action_type).join(';')
                        let tip = typeof ex == 'string' ? ex : ex.message
                        tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: tip,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                        console.log(ex)
                        return
                     }
                  }
               }
@@ -4227,438 +4234,29 @@
                     showCancel: false,
                     confirmText: this.translateSys('close')
                  });
               if (data.result_type == 2) {
                  if (data.result) {
                     var list_1 = JSON
                        .parse(JSON
                           .stringify(
                              this.subClassAttrList
                           ));
                     var scanCodeVal =
                        $this.scanCodeVal;
                     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.subPanelList
                        .push({
                           scanCodeVal: scanCodeVal,
                           subClassAttr: list_1
                        });
                     var result = data
                        .result;
                     for (var i = 0; i <
                        result
                        .length; i++) {
                        for (var s =
                              0; s <
                           $this.subPanelList
                           .length; s++
                        ) {
                           if ($this.subPanelList[
                                 s]
                              .scanCodeVal ==
                              scanCodeVal
                           ) {
                              if (result[
                                    i
                                 ]
                                 .attr ==
                                 "S_ID"
                              )
                                 $this.subPanelList[
                                    s
                                 ]
                                 .ObjID =
                                 result[
                                    i
                                 ]
                                 .value;
                              var _subClassAttr =
                                 $this.subPanelList[
                                    s
                                 ]
                                 .subClassAttr;
                              for (
                                 var c =
                                    0; c <
                                 _subClassAttr
                                 .length; c++
                              ) {
                                 var attr =
                                    _subClassAttr[
                                       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
                                    ) {
                                       attr[
                                             j]
                                          .Value =
                                          result[
                                             i
                                          ]
                                          .value;
                                    }
                                 }
                              }
                           }
                        }
                        var length = 0;
                        if (!$this.refdatastore
                           .filter(
                              function(
                                 s
                              ) {
                                 return result[
                                       i
                                    ]
                                    .attr ==
                                    s
                                    .attr
                              })
                           .length) {
                           length = 1;
                           $this.refdatastore
                              .push(
                                 result[
                                    i
                                 ]
                              );
                        }
                        if (length ==
                           0) {
                           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 (typeof data.result == 'string') {
                  if (data.result) {
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: data.result,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                  }
               }
               try {
                  var actionlist = data.action || []
                  for (var ii =
                        0; ii <
                     actionlist
                     .length; ii++
                  ) {
                     var action =
                        actionlist[
                           ii];
                     if (action
                        .action_type ==
                        'set_dlg_attr'
                     ) {
                        var result =
                           action
                           .value;
                        for (var i =
                              0; i <
                           result
                           .length; i++
                        ) {
                           if (result[
                                 i
                              ]
                              .choice_list
                           ) {
                              for (
                                 var s =
                                    0; s <
                                 $this.subPanelList
                                 .length; s++
                              ) {
                                 for (var c = 0; c < $this.subPanelList[s].subClassAttrList
                                    .length; c++) {
                                    var attr =
                                       $this.subPanelList[
                                          s
                                       ]
                                       .subClassAttrList[
                                          c
                                       ]
                                       .Attr;
                                    for (
                                       var j =
                                          0; j <
                                       attr
                                       .length; j++
                                    ) {
                                       if (attr[
                                             j
                                          ]
                                          .Name ==
                                          result[
                                             i
                                          ]
                                          .attr
                                       ) {
                                          if (utils.classUtils.attrTypeIsDict(attr[j]
                                                .Type)) {
                                             var
                                                dictItemList = [];
                                             for (
                                                var d in
                                                   result[
                                                      i
                                                   ]
                                                   .choice_list
                                             ) {
                                                var val =
                                                   result[
                                                      i
                                                   ]
                                                   .choice_list[
                                                      d
                                                   ];
                                                dictItemList
                                                   .push({
                                                      "CN_S_NAME": val,
                                                      "CN_S_VALUE": val,
                                                      "Name": val,
                                                      "label": val,
                                                      "value": val
                                                   });
                                             }
                                             attr[
                                                   j]
                                                .dictitem =
                                                dictItemList;
                                             // attr[j].dictitem = result[i].choice_list;
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                           for (
                              var s =
                                 0; s <
                              $this
                              .subPanelList
                              .length; s++
                           ) {
                              for (
                                 var c =
                                    0; c <
                                 $this
                                 .subPanelList[
                                    s
                                 ]
                                 .subClassAttrList
                                 .length; c++
                              ) {
                                 var attr =
                                    $this
                                    .subPanelList[
                                       s
                                    ]
                                    .subClassAttrList[
                                       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
                                    ) {
                                       attr[
                                             j]
                                          .Value =
                                          result[
                                             i
                                          ]
                                          .value;
                                    }
                                 }
                              }
                           }
                        }
                     } else if (
                        action
                        .action_type ==
                        'set_global_attr'
                     ) {
                        $this
                           .$actiontr =
                           action
                           .value || [];
                     } else if (
                        action
                        .action_type ==
                        'open_common_dlg'
                     ) { //打开侧滑弹框
                        var $this =
                           this;
                        if (action
                           .value
                           .common_dlg_id ==
                           'check_list'
                        ) {
                           $this.check_list =
                              action
                              .value
                              .config;
                           if (action
                              .value
                              .config
                              .appear_style ==
                              'sideslip'
                           ) //判断是否是侧滑
                              $this
                              .popupType =
                              'right';
                           else
                              $this.popupType =
                              'center'
                           // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
                           $this
                              .$refs
                              .popup
                              .open(
                                 $this
                                 .popupType
                              );
                        }
                     } else if (
                        action
                        .action_type ==
                        'add_subcls_panel'
                     ) { //主从数据类扫码查询数据
                        var result =
                           action
                           .value;
                        var $this =
                           this;
                        var list_1 =
                           JSON
                           .parse(
                              JSON
               if ([0, 2, 3, 4, -1].includes(data.result_type)) {
                  if (data.result_type == 2) {
                     if (data.result) {
                        var list_1 = JSON
                           .parse(JSON
                              .stringify(
                                 this.subClassAttrList
                              )
                           );
                              ));
                        var scanCodeVal =
                           $this.scanCodeVal;
                        var rand =
                           '';
                        for (var i =
                              0; i <
                        var rand = '';
                        for (var i = 0; i <
                           5; i++
                        ) { //生成5位随机数
                           rand +=
                              Math
                              .floor(
                                 Math
                           rand += Math
                              .floor(Math
                                 .random() *
                                 10
                              );
                                 10);
                        }
                        if (inputParamter[
                              0]
                           .attr
                        ) {
                              0].attr) {
                           if (inputParamter[
                                 0
                              ]
                                 0]
                              .attr ==
                              "mast_input_3037"
                           ) //判断是主数据类扫码查询数据
@@ -4666,15 +4264,10 @@
                              "mast_input_3037-" +
                              rand;
                        }
                        if (info
                           .attr[
                              0]
                           .attr
                        ) {
                           if (info
                              .attr[
                                 0
                              ]
                        if (info.attr[0]
                           .attr) {
                           if (info.attr[
                                 0]
                              .attr ==
                              "mast_input_3037"
                           ) //判断是主数据类扫码查询数据
@@ -4687,20 +4280,18 @@
                              scanCodeVal: scanCodeVal,
                              subClassAttr: list_1
                           });
                        for (var i =
                              0; i <
                        var result = data
                           .result;
                        for (var i = 0; i <
                           result
                           .length; i++
                        ) {
                           for (
                              var s =
                           .length; i++) {
                           for (var s =
                                 0; s <
                              $this.subPanelList
                              .length; s++
                           ) {
                              if ($this.subPanelList[
                                    s
                                 ]
                                    s]
                                 .scanCodeVal ==
                                 scanCodeVal
                              ) {
@@ -4760,15 +4351,11 @@
                                       }
                                    }
                                 }
                                 // $this.subPanelList[s].subClassAttr=list_1;
                              }
                           }
                           var length =
                              0;
                           if (!
                              $this.refdatastore
                           var length = 0;
                           if (!$this.refdatastore
                              .filter(
                                 function(
                                    s
@@ -4779,13 +4366,9 @@
                                       .attr ==
                                       s
                                       .attr
                                 }
                              )
                              .length
                           ) {
                              length
                                 =
                                 1;
                                 })
                              .length) {
                              length = 1;
                              $this.refdatastore
                                 .push(
                                    result[
@@ -4794,15 +4377,15 @@
                                 );
                           }
                           if (length ==
                              0
                           ) {
                              for (
                                 var j =
                              0) {
                              for (var j =
                                    0; j <
                                 $this.refdatastore
                                 $this
                                 .refdatastore
                                 .length; j++
                              ) {
                                 if ($this.refdatastore[
                                 if ($this
                                    .refdatastore[
                                       j
                                    ]
                                    .attr ==
@@ -4811,7 +4394,8 @@
                                    ]
                                    .attr
                                 ) {
                                    $this.refdatastore[
                                    $this
                                       .refdatastore[
                                          j
                                       ]
                                       .value =
@@ -4824,20 +4408,445 @@
                           }
                        }
                     }
                  }
               } catch (ex) {
                  let actionList = (data.action || []).map(a => a.action_type).join(';')
                  let tip = typeof ex == 'string' ? ex : ex.message
                  tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                  uni.showModal({
                     title: this.translateSys('tip'),
                     content: tip,
                     showCancel: false,
                     confirmText: this.translateSys('close')
                  });
                  console.log(ex)
                  return
                  } else if (typeof data.result == 'string') {
                     if (data.result) {
                        uni.showModal({
                           title: this.translateSys('tip'),
                           content: data.result,
                           showCancel: false,
                           confirmText: this.translateSys('close')
                        });
                     }
                  }
                  try {
                     var actionlist = data.action || []
                     for (var ii =
                           0; ii <
                        actionlist
                        .length; ii++
                     ) {
                        var action =
                           actionlist[
                              ii];
                        if (action
                           .action_type ==
                           'set_dlg_attr'
                        ) {
                           var result =
                              action
                              .value;
                           for (var i =
                                 0; i <
                              result
                              .length; i++
                           ) {
                              if (result[
                                    i
                                 ]
                                 .choice_list
                              ) {
                                 for (
                                    var s =
                                       0; s <
                                    $this.subPanelList
                                    .length; s++
                                 ) {
                                    for (var c = 0; c < $this.subPanelList[s].subClassAttrList
                                       .length; c++) {
                                       var attr =
                                          $this.subPanelList[
                                             s
                                          ]
                                          .subClassAttrList[
                                             c
                                          ]
                                          .Attr;
                                       for (
                                          var j =
                                             0; j <
                                          attr
                                          .length; j++
                                       ) {
                                          if (attr[
                                                j
                                             ]
                                             .Name ==
                                             result[
                                                i
                                             ]
                                             .attr
                                          ) {
                                             if (utils.classUtils.attrTypeIsDict(attr[j]
                                                   .Type)) {
                                                var
                                                   dictItemList = [];
                                                for (
                                                   var d in
                                                      result[
                                                         i
                                                      ]
                                                      .choice_list
                                                ) {
                                                   var val =
                                                      result[
                                                         i
                                                      ]
                                                      .choice_list[
                                                         d
                                                      ];
                                                   dictItemList
                                                      .push({
                                                         "CN_S_NAME": val,
                                                         "CN_S_VALUE": val,
                                                         "Name": val,
                                                         "label": val,
                                                         "value": val
                                                      });
                                                }
                                                attr[
                                                      j]
                                                   .dictitem =
                                                   dictItemList;
                                                // attr[j].dictitem = result[i].choice_list;
                                             }
                                          }
                                       }
                                    }
                                 }
                              }
                              for (
                                 var s =
                                    0; s <
                                 $this
                                 .subPanelList
                                 .length; s++
                              ) {
                                 for (
                                    var c =
                                       0; c <
                                    $this
                                    .subPanelList[
                                       s
                                    ]
                                    .subClassAttrList
                                    .length; c++
                                 ) {
                                    var attr =
                                       $this
                                       .subPanelList[
                                          s
                                       ]
                                       .subClassAttrList[
                                          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
                                       ) {
                                          attr[
                                                j]
                                             .Value =
                                             result[
                                                i
                                             ]
                                             .value;
                                       }
                                    }
                                 }
                              }
                           }
                        } else if (
                           action
                           .action_type ==
                           'set_global_attr'
                        ) {
                           $this
                              .$actiontr =
                              action
                              .value || [];
                        } else if (
                           action
                           .action_type ==
                           'open_common_dlg'
                        ) { //打开侧滑弹框
                           var $this =
                              this;
                           if (action
                              .value
                              .common_dlg_id ==
                              'check_list'
                           ) {
                              $this.check_list =
                                 action
                                 .value
                                 .config;
                              if (action
                                 .value
                                 .config
                                 .appear_style ==
                                 'sideslip'
                              ) //判断是否是侧滑
                                 $this
                                 .popupType =
                                 'right';
                              else
                                 $this.popupType =
                                 'center'
                              // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
                              $this
                                 .$refs
                                 .popup
                                 .open(
                                    $this
                                    .popupType
                                 );
                           }
                        } else if (
                           action
                           .action_type ==
                           'add_subcls_panel'
                        ) { //主从数据类扫码查询数据
                           var result =
                              action
                              .value;
                           var $this =
                              this;
                           var list_1 =
                              JSON
                              .parse(
                                 JSON
                                 .stringify(
                                    this.subClassAttrList
                                 )
                              );
                           var scanCodeVal =
                              $this.scanCodeVal;
                           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.subPanelList
                              .push({
                                 scanCodeVal: scanCodeVal,
                                 subClassAttr: list_1
                              });
                           for (var i =
                                 0; i <
                              result
                              .length; i++
                           ) {
                              for (
                                 var s =
                                    0; s <
                                 $this.subPanelList
                                 .length; s++
                              ) {
                                 if ($this.subPanelList[
                                       s
                                    ]
                                    .scanCodeVal ==
                                    scanCodeVal
                                 ) {
                                    if (result[
                                          i
                                       ]
                                       .attr ==
                                       "S_ID"
                                    )
                                       $this.subPanelList[
                                          s
                                       ]
                                       .ObjID =
                                       result[
                                          i
                                       ]
                                       .value;
                                    var _subClassAttr =
                                       $this.subPanelList[
                                          s
                                       ]
                                       .subClassAttr;
                                    for (
                                       var c =
                                          0; c <
                                       _subClassAttr
                                       .length; c++
                                    ) {
                                       var attr =
                                          _subClassAttr[
                                             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
                                          ) {
                                             attr[
                                                   j]
                                                .Value =
                                                result[
                                                   i
                                                ]
                                                .value;
                                          }
                                       }
                                    }
                                    // $this.subPanelList[s].subClassAttr=list_1;
                                 }
                              }
                              var length =
                                 0;
                              if (!
                                 $this.refdatastore
                                 .filter(
                                    function(
                                       s
                                    ) {
                                       return result[
                                             i
                                          ]
                                          .attr ==
                                          s
                                          .attr
                                    }
                                 )
                                 .length
                              ) {
                                 length
                                    =
                                    1;
                                 $this.refdatastore
                                    .push(
                                       result[
                                          i
                                       ]
                                    );
                              }
                              if (length ==
                                 0
                              ) {
                                 for (
                                    var j =
                                       0; j <
                                    $this.refdatastore
                                    .length; j++
                                 ) {
                                    if ($this.refdatastore[
                                          j
                                       ]
                                       .attr ==
                                       result[
                                          i
                                       ]
                                       .attr
                                    ) {
                                       $this.refdatastore[
                                             j
                                          ]
                                          .value =
                                          result[
                                             i
                                          ]
                                          .value;
                                    }
                                 }
                              }
                           }
                        }
                     }
                  } catch (ex) {
                     let actionList = (data.action || []).map(a => a.action_type).join(';')
                     let tip = typeof ex == 'string' ? ex : ex.message
                     tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}`
                     uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }
            }