diff --git a/src/modules/transfer.js b/src/modules/transfer.js index c16037fc..70f7c734 100644 --- a/src/modules/transfer.js +++ b/src/modules/transfer.js @@ -214,7 +214,14 @@ layui.define(['laytpl', 'form'], function(exports){ ,listElem = ['
  • ' ,'' ,'
  • '].join(''); - arr[_index].views.push(listElem); + //按照options.value顺序排列右侧数据 + if(_index){ + for(let key in options.value) { + if(options.value[key] == item.value && item.selected) arr[_index].views[key] = listElem; + } + }else{ + arr[_index].views.push(listElem); + } delete item.selected; });