cuiqian2004
2025-08-01 8f1880cf13440b9cb57d15520ebc3b785f3dabb1
pages/modal/3018.vue
@@ -1680,6 +1680,7 @@
                     .err_info :
                     data
                     .err_info.join('<br/>') : '';
                  tip = tip || data.err_info
                  if (data.ret == 801) uni.showModal({
                     title: this.translateSys('tip'),
                     content: tip,
@@ -1705,10 +1706,20 @@
                     showCancel: false,
                     confirmText: this.translateSys('close')
                  });
                  if (data.result_type == 2) {
                  if (data.action) {
                     var actionlist = data.action;
                     if (actionlist) {
                  } 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;
@@ -1735,8 +1746,21 @@
                           // }
                        }
                  } 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 => {
@@ -1826,6 +1850,7 @@
                     .err_info :
                     data
                     .err_info.join('<br/>') : '';
                  tip = tip || data.err_info
                  if (data.ret == 801) uni.showModal({
                     title: this.translateSys('tip'),
                     content: tip,
@@ -2019,6 +2044,7 @@
                        .err_info :
                        data
                        .err_info.join('<br/>') : '';
                     tip = tip || data.err_info
                     if (data.ret == 801) uni.showModal({
                        title: this.translateSys('tip'),
                        content: tip,
@@ -2044,8 +2070,8 @@
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     if (data.result) {
                        var result = data.result;
                     if (data.result_type == 2) {
                        var result = data.result || [];
                        console.log(this.refdatastore)
                        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);
@@ -2065,7 +2091,17 @@
                           }
                        }
                     } else if (typeof data.result == 'string') {
                        if (data.result) {
                           uni.showModal({
                              title: this.translateSys('tip'),
                              content: data.result,
                              showCancel: false,
                              confirmText: this.translateSys('close')
                           });
                     }
                     }
                     this.add();
                  }
@@ -2203,17 +2239,27 @@
                     .info
                     .join(
                        '<br/>') : '';
                  tip = tip || data.err_info
                  if (tip) uni.showModal({
                     title: this.translateSys('tip'),
                     content: tip,
                     showCancel: false,
                     confirmText: this.translateSys('close')
                  });
                  if (data.result_type == 2) {
                  if (data != "") {
                     var actions = data.action;
                     console.log(actions);
                     if (actions) {
                  } 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;
@@ -2392,15 +2438,21 @@
                              d.show();
                           }
                        }
                     }
                  } else {
                  } 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') + "5.2",
                        content: this.translate("execute_script_return_empty"),
                        title: this.translateSys('tip'),
                        content: tip,
                        showCancel: false,
                        confirmText: this.translateSys('close')
                     });
                     console.log(ex)
                     return
                  }
               }
            }).catch(ex => {