Bläddra i källkod

右键“编辑工程内容”、“编辑服务内容”、“编辑签证及索赔依据”,弹出的编辑框改成文本框

zhangweicheng 6 år sedan
förälder
incheckning
1228424d29
2 ändrade filer med 6 tillägg och 2 borttagningar
  1. 5 1
      public/scHintBox.html
  2. 1 1
      web/building_saas/main/js/views/project_view.js

+ 5 - 1
public/scHintBox.html

@@ -148,7 +148,11 @@
             $("#hintBox_form").modal('show');
 
         },
-        valueBox: function (title, value, doOK) {
+        valueBox: function (title, value, doOK,row) {
+            if(row && row>0){//默认为input,如果有row说明是要多行输入,把input换成textarea.
+                $('#hintBox_value').remove();
+                $("#hintBox_error").before(` <textarea id="hintBox_value" class="form-control" rows="${row}"></textarea>`);
+            }
             this.init();
             $('#hintBox_title').text(title);
             this.value = value;

+ 1 - 1
web/building_saas/main/js/views/project_view.js

@@ -1936,7 +1936,7 @@ var projectObj = {
         hintBox.valueBox(infoText, node.data[fieldID], function () {
             let newValue = hintBox.value;
             projectObj.updateNodeField(node,newValue,fieldID);
-        });
+        },3);
     },
     ifItemCharHiden:function (setting) {//项目特征及内容列是否隐藏
         if(this.itemCol == null||this.itemCol == undefined){