vue2-client 1.6.15 → 1.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.6.15 -2023-02-14 @江超**
4
+ **1.6.15 - 1.6.16 -2023-02-14 @江超**
5
5
  - 解决XFormTable的一个BUG
6
6
  - 升级g2plot的版本
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,80 +1,43 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <dictionary-details-view
4
- v-if="selectId"
5
- :id="selectId"
6
- :visible.sync="detailVisible"
7
- />
8
- <x-form-table
9
- :queryParamsName="queryParamsName"
10
- title="字典"
11
- @action="toDetail">
12
- </x-form-table>
13
- <div id="container"></div>
14
- </a-card>
15
- </template>
16
-
17
- <script>
18
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
19
- import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
20
- import { Line } from '@antv/g2plot'
21
- import axios from 'axios'
22
-
23
- export default {
24
- name: 'Dictionary',
25
- components: {
26
- XFormTable,
27
- DictionaryDetailsView
28
- },
29
- data () {
30
- return {
31
- // 选中的编号
32
- selectId: undefined,
33
- // 查询配置文件名
34
- queryParamsName: 'dictionaryQueryParams',
35
- // 是否显示详情抽屉
36
- detailVisible: false
37
- }
38
- },
39
- mounted () {
40
- this.init()
41
- },
42
- methods: {
43
- init () {
44
- axios.get('/demo.json').then(res => {
45
- const a = res.slice(0, 100000)
46
- const line = new Line('container', {
47
- data: a,
48
- xField: 'runTimeStr',
49
- yField: 'count',
50
- seriesField: 'level',
51
- tooltip: {
52
- shared: true
53
- },
54
- slider: {
55
- start: 0,
56
- end: 0.4
57
- },
58
- legend: {
59
- position: 'top',
60
- radio: true,
61
- flipPage: false
62
- },
63
- smooth: true,
64
- yAxis: {
65
- label: {
66
- // 数值格式化为千分位
67
- formatter: (v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`),
68
- },
69
- },
70
- })
71
- line.render()
72
- })
73
- },
74
- toDetail (record, id) {
75
- this.selectId = id + ''
76
- this.detailVisible = true
77
- }
78
- }
79
- }
80
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <dictionary-details-view
4
+ v-if="selectId"
5
+ :id="selectId"
6
+ :visible.sync="detailVisible"
7
+ />
8
+ <x-form-table
9
+ :queryParamsName="queryParamsName"
10
+ title="字典"
11
+ @action="toDetail">
12
+ </x-form-table>
13
+ </a-card>
14
+ </template>
15
+
16
+ <script>
17
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
18
+ import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
19
+
20
+ export default {
21
+ name: 'Dictionary',
22
+ components: {
23
+ XFormTable,
24
+ DictionaryDetailsView
25
+ },
26
+ data () {
27
+ return {
28
+ // 选中的编号
29
+ selectId: undefined,
30
+ // 查询配置文件名
31
+ queryParamsName: 'dictionaryQueryParams',
32
+ // 是否显示详情抽屉
33
+ detailVisible: false
34
+ }
35
+ },
36
+ methods: {
37
+ toDetail (record, id) {
38
+ this.selectId = id + ''
39
+ this.detailVisible = true
40
+ }
41
+ }
42
+ }
43
+ </script>