Explorar o código

1.草图bug修复
2.计量台账附件列表显示bug

laiguoran %!s(int64=5) %!d(string=hai) anos
pai
achega
513e478177
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      app/public/js/stage.js
  2. 1 1
      app/public/js/stage_detail.js

+ 2 - 1
app/public/js/stage.js

@@ -109,7 +109,7 @@ function getAllList(currPageNum = 1) {
 function getNodeList(node) {
     let html = '';
     for(const att of attData) {
-        if (parseInt(node) === parseInt(att.lid)) {
+        if (node === att.lid) {
             html += '<tr><td><a href="javascript:void(0)" file-id="'+ att.id +'">'+ att.filename + att.fileext +'</a></td><td>'+ att.username +'</td></tr>';
 
         }
@@ -810,6 +810,7 @@ $(document).ready(() => {
             if (node) {
                 const posData = stagePos.ledgerPos[itemsPre + node.id] || [];
                 SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', posData);
+                console.log(node.id);
                 getNodeList(node.id);
             } else {
                 SpreadJsObj.loadSheetData(spSpread.getActiveSheet(), 'data', []);

+ 1 - 1
app/public/js/stage_detail.js

@@ -576,7 +576,7 @@ $(document).ready(() => {
                 const html = [];
                 html.push('<div class="img-item">');
                 html.push('<div class="img-bar">');
-                html.push('<a href="" class="text-danger" title="删除"><i class="fa fa-remove"></i></a>');
+                html.push('<a href="javascript: void(0);" class="text-danger" title="删除"><i class="fa fa-remove"></i></a>');
                 html.push('</div>');
                 html.push('<div class="focus" style="width:100%; height:100%"><img src="', '/' + result, '" id="draggable" style="width:100%; height:100%"></div>');
                 html.push('</div>');