|
@@ -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');
|