Skip to content

设置的MD内容,和通过onChange或 store.getMDContent 获取的不一致 #159

@git-lt

Description

@git-lt

我设置的MD内容是

### 体检机构分布分析
从数据可见,员工主要选择瑞慈(165人)和爱康(148人)两家体检机构,瑞慈占比52.7%,爱康占比47.3%,两家机构基本平分秋色。

<!-- [{"chartType": "pie", "title": "体检机构分布", "x": "brandName", "y": "anou"}] -->
| brandName | anou | 百分比 |
|-----------|------|--------|
| 瑞慈      | 165  | 52.7   |
| 爱康      | 148  | 47.3   |

### 年龄分布特征
参检员工主要集中在25-44岁年龄段,其中:
- 25-34岁:141人,异常率42.22%
- 35-44岁:127人,异常率35.18%
- 45-60岁:27人,异常率42.19%
- 24岁及以下:17人,异常率54.84%
- 61岁及以上:1人,异常率50.00%

年轻员工(24岁及以下)异常率最高,值得关注。

<!-- [{"chartType": "bar", "title": "各年龄段异常率对比", "x": "ageRange", "y": "rate"}] -->
| ageRange | anou | anouT | rate |
|----------|------|-------|------|
| 24岁及以下 | 17 | 31 | 54.84 |
| 25-34岁 | 141 | 334 | 42.22 |
| 35-44岁 | 127 | 361 | 35.18 |
| 45-60岁 | 27 | 64 | 42.19 |
| 61岁及以上 | 1 | 2 | 50.00 |

通过onChange或 ref.store.getMDContent获取MD内容是

### 体检机构分布分析

从数据可见,员工主要选择瑞慈(165人)和爱康(148人)两家体检机构,瑞慈占比52.7%,爱康占比47.3%,两家机构基本平分秋色。

<!--{"0":{"chartType":"pie","title":"体检机构分布","x":"brandName","y":"anou"}}-->
<!-- [{"chartType": "pie", "title": "体检机构分布", "x": "brandName", "y": "anou"}] -->

<!--{"0":{"chartType":"pie","title":"体检机构分布","x":"brandName","y":"anou"}}-->

<!--{"config":[{"chartType":"pie","title":"体检机构分布","x":"brandName","y":"anou"}]}-->
| brandName | anou | 百分比 |
| :-------- | ---: | -----: |
| 瑞慈 |  165 |   52.7 |
| 爱康 |  148 |   47.3 |

### 年龄分布特征

参检员工主要集中在25-44岁年龄段,其中:

- 25-34岁:141人,异常率42.22%
- 35-44岁:127人,异常率35.18%
- 45-60岁:27人,异常率42.19%
- 24岁及以下:17人,异常率54.84%
- 61岁及以上:1人,异常率50.00%

年轻员工(24岁及以下)异常率最高,值得关注。

<!--{"0":{"chartType":"bar","title":"各年龄段异常率对比","x":"ageRange","y":"rate"}}-->
<!-- [{"chartType": "bar", "title": "各年龄段异常率对比", "x": "ageRange", "y": "rate"}] -->

<!--{"0":{"chartType":"bar","title":"各年龄段异常率对比","x":"ageRange","y":"rate"}}-->

<!--{"config":[{"chartType":"bar","title":"各年龄段异常率对比","x":"ageRange","y":"rate"}]}-->
| ageRange | anou | anouT |  rate |
| :--------- | ---: | ----: | ----: |
| 24岁及以下 |   17 |    31 | 54.84 |
| 25-34岁 |  141 |   334 | 42.22 |
| 35-44岁 |  127 |   361 | 35.18 |
| 45-60岁 |   27 |    64 | 42.19 |
| 61岁及以上 |    1 |     2 | 50.00 |

多了这些配置

<!--{"0":{"chartType":"bar","title":"各年龄段异常率对比","x":"ageRange","y":"rate"}}-->
<!-- [{"chartType": "bar", "title": "各年龄段异常率对比", "x": "ageRange", "y": "rate"}] -->

<!--{"0":{"chartType":"bar","title":"各年龄段异常率对比","x":"ageRange","y":"rate"}}-->

导致保存的内容,下次再setMDContent, 图表就渲染不出来了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions