Sfoglia il codice sorgente

审批人选择问题

MaiXinRong 4 anni fa
parent
commit
40df8d023c
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      app/public/report/js/rpt_custom.js

+ 2 - 3
app/public/report/js/rpt_custom.js

@@ -200,10 +200,9 @@ const rptCustomObj = (function () {
         for (const [i, s] of setting.select.entries()) {
         for (const [i, s] of setting.select.entries()) {
             const obj = $('#sf-' + i);
             const obj = $('#sf-' + i);
             const s = select[i];
             const s = select[i];
-            const sf = s ? stageFlow.find(function (x) {
+            obj[0].selectedIndex = s ? stageFlow.findIndex(function (x) {
                 return x.order === s.order && x.aid === s.aid;
                 return x.order === s.order && x.aid === s.aid;
-            }) : null;
-            obj[0].selectedIndex = sf ? sf.order : -1;
+            }) : -1;
         }
         }
         if (asSelect.length === 0 || !checkAsSelectValid(stageFlow, asSelect)) {
         if (asSelect.length === 0 || !checkAsSelectValid(stageFlow, asSelect)) {
             $('#audit-select').modal('show');
             $('#audit-select').modal('show');