1234567891011121314151617181920212223242526272829303132 |
- const getExtInfo = (item) => {
- const { componentExtInfo } = item;
- return componentExtInfo || {};
- };
- const getServiceList = (item) => {
- const { serviceList } = item;
- return serviceList || [];
- };
- const getTabs = (item) => {
- const list = getServiceList(item);
- const { isShowKs = 'Y' } = getExtInfo(item);
- const tabs = [{
- title: '专家名医',
- }];
- if (isShowKs === 'Y' && list.length > 0) {
- tabs.push({ title: '科室介绍' });
- }
- return tabs;
- };
- export default {
- getTabs,
- getServiceList,
- };
|