| | |
| | | |
| | | // 数据源查询语句 |
| | | if (item.resourceType === '1' && item.dataSource) { |
| | | if (item.multiple === 'dropdown') { |
| | | item.parentField = 'pid' |
| | | } |
| | | let _option = Utils.getSelectQueryOptions(item) |
| | | |
| | | if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) { |
| | |
| | | } |
| | | |
| | | resetCheckcard = (item) => { |
| | | let pid = item.resourceType === '0' ? 'pid' : item.parentField |
| | | let _options = [] |
| | | let _others = [] |
| | | item.oriOptions.forEach(op => { |
| | | if (op.pid === item.mark) { |
| | | if (op[pid] === item.mark) { |
| | | _options.push(op) |
| | | } else { |
| | | _others.push(op) |
| | |
| | | op.children = [] |
| | | |
| | | _others = _others.filter(cell => { |
| | | if (cell.pid === op.$value) { |
| | | if (cell[pid] === op.$value) { |
| | | op.children.push(cell) |
| | | return false |
| | | } |