Browse Source

fix: 一些定额库打开后卡死问题

vian 3 months ago
parent
commit
1700662758
1 changed files with 3 additions and 3 deletions
  1. 3 3
      web/maintain/ration_repository/js/explanatory.js

+ 3 - 3
web/maintain/ration_repository/js/explanatory.js

@@ -137,9 +137,9 @@ let explanatoryOprObj = {
         })
         })
     },
     },
     showText: function (explanation, erratumRecord, ruleText) {
     showText: function (explanation, erratumRecord, ruleText) {
-        this.exEditor.setValue(explanation && explanation !== 'undefined' ? explanation : '');
-        this.erratumEditor.setValue(erratumRecord && erratumRecord !== 'undefined' ? erratumRecord : '');
-        this.calcEditor.setValue(ruleText && ruleText !== 'undefined' ? ruleText : '');
+        this.exEditor.setValue(explanation && explanation !== 'undefined' ? String(explanation) : '');
+        this.erratumEditor.setValue(erratumRecord && erratumRecord !== 'undefined' ? String(erratumRecord) : '');
+        this.calcEditor.setValue(ruleText && ruleText !== 'undefined' ? String(ruleText) : '');
     },
     },
     //更新说明
     //更新说明
     updateExplanation: function (repId, nodeId, explanation, callback) {
     updateExplanation: function (repId, nodeId, explanation, callback) {