| | |
| | | |
| | | if (this.record.intertype === 'custom') { |
| | | shows.pop() |
| | | shows.push('procMode', 'interface', 'callbackType', 'proInterface', 'method', 'cross', 'stringify', 'ContentType') |
| | | shows.push('procMode', 'interface', 'callbackType', 'proInterface', 'method', 'cross', 'stringify', 'ContentType', 'outerBlacklist') |
| | | if (this.record.procMode === 'system') { |
| | | shows.push('sql', 'sqlType') |
| | | } else if (this.record.procMode === 'inner') { |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'outerBlacklist', |
| | | label: '字段黑名单', |
| | | initVal: card.outerBlacklist || '', |
| | | tooltip: '不需要回传的字段可设置字段黑名单,多个值请用逗号分隔。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'Ot', |
| | | label: '行设置', |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && _item.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && _item.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && _item.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |
| | |
| | | reOptions.intertype = this.state.interTypeOptions |
| | | |
| | | if (intertype === 'custom') { |
| | | shows.push('procMode', 'interface', 'callbackType', 'proInterface', 'method', 'cross', 'stringify', 'ContentType') |
| | | shows.push('procMode', 'interface', 'callbackType', 'proInterface', 'method', 'cross', 'stringify', 'ContentType', 'outerBlacklist') |
| | | if (this.record.procMode === 'system') { |
| | | shows.push('sql', 'sqlType') |
| | | } else if (this.record.procMode === 'inner') { |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'outerBlacklist', |
| | | label: '字段黑名单', |
| | | initVal: card.outerBlacklist || '', |
| | | tooltip: '不需要回传的字段可设置字段黑名单,多个值请用逗号分隔。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'Ot', |
| | | label: '行设置', |
| | |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'text', |
| | | key: 'outerBlacklist', |
| | | label: '字段黑名单', |
| | | initVal: card.outerBlacklist || '', |
| | | tooltip: '不需要回传的字段可设置字段黑名单,多个值请用逗号分隔。', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'Ot', |
| | | label: '行设置', |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && card.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && card.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'checkcard' && item.multiple === 'true') return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |
| | |
| | | if (Array.isArray(res)) { |
| | | res = { data: res } |
| | | } |
| | | |
| | | if (btn.outerBlacklist) { |
| | | let list = btn.outerBlacklist.split(',').map(m => m.toLowerCase()) |
| | | Object.keys(res).forEach(key => { |
| | | if (list.includes(key.toLowerCase())) { |
| | | delete res[key] |
| | | } |
| | | }) |
| | | } |
| | | |
| | | res.mk_api_key = mkey |
| | | this.customCallbackRequest(params, res, record, _resolve) |
| | | } |
| | |
| | | index = i |
| | | } |
| | | |
| | | if (!item.field) return |
| | | |
| | | if (['text', 'number', 'textarea', 'color'].includes(item.type) && card.field !== item.field) { |
| | | _inputfields.push({ |
| | | field: item.field, |
| | |
| | | |
| | | if (item.type === 'multiselect' || (item.type === 'checkcard' && item.multiple === 'true')) return |
| | | |
| | | if (item.field && !uniq.has(item.field)) { |
| | | if (!uniq.has(item.field)) { |
| | | uniq.set(item.field, true) |
| | | |
| | | _linkableFields.push({ |