vue2-client 1.18.20 → 1.18.21

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.
Files changed (98) hide show
  1. package/.eslintrc.js +90 -90
  2. package/Components.md +60 -60
  3. package/docs/index.md +30 -30
  4. package/index.js +31 -31
  5. package/jest-transform-stub.js +8 -8
  6. package/jest.setup.js +7 -7
  7. package/package.json +112 -112
  8. package/src/assets/img/querySlotDemo.svg +15 -15
  9. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  10. package/src/base-client/components/common/CitySelect/index.js +3 -3
  11. package/src/base-client/components/common/CitySelect/index.md +109 -109
  12. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  13. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  14. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  15. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  16. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  17. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  18. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  19. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  20. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  21. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  22. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  23. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  24. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  25. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  26. package/src/base-client/components/common/Tree/index.js +2 -2
  27. package/src/base-client/components/common/Upload/index.js +3 -3
  28. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  29. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  30. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  31. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  32. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  33. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  34. package/src/base-client/components/common/XDescriptions/index.md +83 -83
  35. package/src/base-client/components/common/XForm/index.md +178 -178
  36. package/src/base-client/components/common/XFormTable/XFormTable.vue +2 -26
  37. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  38. package/src/base-client/components/common/XStepView/index.js +3 -3
  39. package/src/base-client/components/common/XStepView/index.md +31 -31
  40. package/src/base-client/components/common/XTable/index.md +255 -255
  41. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  42. package/src/base-client/plugins/Config.js +19 -19
  43. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  44. package/src/components/Charts/Bar.vue +62 -62
  45. package/src/components/Charts/ChartCard.vue +134 -134
  46. package/src/components/Charts/Liquid.vue +67 -67
  47. package/src/components/Charts/MiniArea.vue +39 -39
  48. package/src/components/Charts/MiniBar.vue +39 -39
  49. package/src/components/Charts/MiniProgress.vue +75 -75
  50. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  51. package/src/components/Charts/Radar.vue +68 -68
  52. package/src/components/Charts/RankList.vue +77 -77
  53. package/src/components/Charts/TagCloud.vue +113 -113
  54. package/src/components/Charts/TransferBar.vue +64 -64
  55. package/src/components/Charts/Trend.vue +82 -82
  56. package/src/components/Charts/chart.less +12 -12
  57. package/src/components/Charts/smooth.area.less +13 -13
  58. package/src/components/FileImageItem/FileItem.vue +320 -320
  59. package/src/components/FileImageItem/FileItemGroup.vue +297 -297
  60. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  61. package/src/components/NumberInfo/index.js +3 -3
  62. package/src/components/NumberInfo/index.less +54 -54
  63. package/src/components/NumberInfo/index.md +43 -43
  64. package/src/components/card/ChartCard.vue +79 -79
  65. package/src/components/chart/Bar.vue +60 -60
  66. package/src/components/chart/MiniArea.vue +67 -67
  67. package/src/components/chart/MiniBar.vue +59 -59
  68. package/src/components/chart/MiniProgress.vue +57 -57
  69. package/src/components/chart/Radar.vue +80 -80
  70. package/src/components/chart/RankingList.vue +60 -60
  71. package/src/components/chart/Trend.vue +79 -79
  72. package/src/components/chart/index.less +9 -9
  73. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  74. package/src/components/input/IInput.vue +66 -66
  75. package/src/components/menu/SideMenu.vue +75 -75
  76. package/src/components/menu/menu.js +273 -273
  77. package/src/components/tool/AStepItem.vue +60 -60
  78. package/src/layouts/CommonLayout.vue +56 -56
  79. package/src/layouts/header/HeaderNotice.vue +177 -177
  80. package/src/lib.js +1 -1
  81. package/src/mock/extend/index.js +84 -84
  82. package/src/mock/goods/index.js +108 -108
  83. package/src/pages/WorkflowDetail/WorkflowDetail.vue +404 -404
  84. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1815 -1815
  85. package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +98 -98
  86. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  87. package/src/pages/system/dictionary/index.vue +44 -44
  88. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  89. package/src/pages/system/monitor/operLog/index.vue +37 -37
  90. package/src/pages/userInfoDetailManage/ApplyRecordQuery/index.vue +64 -64
  91. package/src/pages/userInfoDetailManage/SafeCheckPaperV3RecordQuery/index.vue +64 -64
  92. package/src/pages/userInfoDetailManage/TelephoneV3RecordQuery/index.vue +64 -64
  93. package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +155 -155
  94. package/src/services/api/cas.js +79 -79
  95. package/src/store/modules/setting.js +119 -119
  96. package/src/utils/authority-utils.js +85 -85
  97. package/src/utils/errorCode.js +6 -6
  98. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
@@ -1,79 +1,79 @@
1
- <template>
2
- <div class="chart-trend">
3
- {{ term }}
4
- <span>{{ rate }}%</span>
5
- <span :class="['chart-trend-icon', trend]" style=""><a-icon :type="'caret-' + trend" /></span>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- export default {
11
- name: 'Trend',
12
- props: {
13
- term: {
14
- type: String,
15
- required: true
16
- },
17
- target: {
18
- type: Number,
19
- required: false,
20
- default: 0
21
- },
22
- value: {
23
- type: Number,
24
- required: false,
25
- default: 0
26
- },
27
- isIncrease: {
28
- type: Boolean,
29
- required: false,
30
- default: null
31
- },
32
- percent: {
33
- type: Number,
34
- required: false,
35
- default: null
36
- },
37
- scale: {
38
- type: Number,
39
- required: false,
40
- default: 2
41
- }
42
- },
43
- data () {
44
- return {
45
- trend: this.isIncrease ? 'up' : 'down',
46
- rate: this.percent
47
- }
48
- },
49
- created () {
50
- this.trend = this.caulateTrend()
51
- this.rate = this.caulateRate()
52
- },
53
- methods: {
54
- caulateRate () {
55
- return (this.percent === null ? Math.abs(this.value - this.target) * 100 / this.target : this.percent).toFixed(this.scale)
56
- },
57
- caulateTrend () {
58
- const isIncrease = this.isIncrease === null ? this.value >= this.target : this.isIncrease
59
- return isIncrease ? 'up' : 'down'
60
- }
61
- }
62
- }
63
- </script>
64
-
65
- <style lang="less" scoped>
66
- .chart-trend{
67
- display: inline-block;
68
- font-size: 14px;
69
- .chart-trend-icon{
70
- font-size: 12px;
71
- &.up{
72
- color: @red-6;
73
- }
74
- &.down{
75
- color: @green-6;
76
- }
77
- }
78
- }
79
- </style>
1
+ <template>
2
+ <div class="chart-trend">
3
+ {{ term }}
4
+ <span>{{ rate }}%</span>
5
+ <span :class="['chart-trend-icon', trend]" style=""><a-icon :type="'caret-' + trend" /></span>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: 'Trend',
12
+ props: {
13
+ term: {
14
+ type: String,
15
+ required: true
16
+ },
17
+ target: {
18
+ type: Number,
19
+ required: false,
20
+ default: 0
21
+ },
22
+ value: {
23
+ type: Number,
24
+ required: false,
25
+ default: 0
26
+ },
27
+ isIncrease: {
28
+ type: Boolean,
29
+ required: false,
30
+ default: null
31
+ },
32
+ percent: {
33
+ type: Number,
34
+ required: false,
35
+ default: null
36
+ },
37
+ scale: {
38
+ type: Number,
39
+ required: false,
40
+ default: 2
41
+ }
42
+ },
43
+ data () {
44
+ return {
45
+ trend: this.isIncrease ? 'up' : 'down',
46
+ rate: this.percent
47
+ }
48
+ },
49
+ created () {
50
+ this.trend = this.caulateTrend()
51
+ this.rate = this.caulateRate()
52
+ },
53
+ methods: {
54
+ caulateRate () {
55
+ return (this.percent === null ? Math.abs(this.value - this.target) * 100 / this.target : this.percent).toFixed(this.scale)
56
+ },
57
+ caulateTrend () {
58
+ const isIncrease = this.isIncrease === null ? this.value >= this.target : this.isIncrease
59
+ return isIncrease ? 'up' : 'down'
60
+ }
61
+ }
62
+ }
63
+ </script>
64
+
65
+ <style lang="less" scoped>
66
+ .chart-trend{
67
+ display: inline-block;
68
+ font-size: 14px;
69
+ .chart-trend-icon{
70
+ font-size: 12px;
71
+ &.up{
72
+ color: @red-6;
73
+ }
74
+ &.down{
75
+ color: @green-6;
76
+ }
77
+ }
78
+ }
79
+ </style>
@@ -1,9 +1,9 @@
1
- .mini-chart{
2
- position: relative;
3
- width: 100%;
4
- .chart-content{
5
- position: absolute;
6
- bottom: -28px;
7
- width: 100%;
8
- }
9
- }
1
+ .mini-chart{
2
+ position: relative;
3
+ width: 100%;
4
+ .chart-content{
5
+ position: absolute;
6
+ bottom: -28px;
7
+ width: 100%;
8
+ }
9
+ }
@@ -1,157 +1,157 @@
1
- <template>
2
- <div class="theme-color" :style="{backgroundColor: color}" @click="toggle">
3
- <a-icon v-if="sChecked" type="check" />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- const Group = {
9
- name: 'ColorCheckboxGroup',
10
- props: {
11
- defaultValues: {
12
- type: Array,
13
- required: false,
14
- default: () => []
15
- },
16
- multiple: {
17
- type: Boolean,
18
- required: false,
19
- default: false
20
- }
21
- },
22
- data () {
23
- return {
24
- values: [],
25
- options: []
26
- }
27
- },
28
- computed: {
29
- colors () {
30
- const colors = []
31
- this.options.forEach(item => {
32
- if (item.sChecked) {
33
- colors.push(item.color)
34
- }
35
- })
36
- return colors
37
- }
38
- },
39
- provide () {
40
- return {
41
- groupContext: this
42
- }
43
- },
44
- watch: {
45
- values (value) {
46
- this.$emit('change', value, this.colors)
47
- }
48
- },
49
- methods: {
50
- handleChange (option) {
51
- if (!option.checked) {
52
- if (this.values.indexOf(option.value) > -1) {
53
- this.values = this.values.filter(item => item !== option.value)
54
- }
55
- } else {
56
- if (!this.multiple) {
57
- this.values = [option.value]
58
- this.options.forEach(item => {
59
- if (item.value !== option.value) {
60
- item.sChecked = false
61
- }
62
- })
63
- } else {
64
- this.values.push(option.value)
65
- }
66
- }
67
- }
68
- },
69
- render (h) {
70
- const clear = h('div', { attrs: { style: 'clear: both' } })
71
- return h(
72
- 'div',
73
- {},
74
- [this.$slots.default, clear]
75
- )
76
- }
77
- }
78
-
79
- export default {
80
- name: 'ColorCheckbox',
81
- Group: Group,
82
- props: {
83
- color: {
84
- type: String,
85
- required: true
86
- },
87
- value: {
88
- type: [String, Number],
89
- required: true
90
- },
91
- checked: {
92
- type: Boolean,
93
- required: false,
94
- default: false
95
- }
96
- },
97
- data () {
98
- return {
99
- sChecked: this.initChecked()
100
- }
101
- },
102
- computed: {
103
- },
104
- inject: ['groupContext'],
105
- watch: {
106
- sChecked: function () {
107
- const value = {
108
- value: this.value,
109
- color: this.color,
110
- checked: this.sChecked
111
- }
112
- this.$emit('change', value)
113
- const groupContext = this.groupContext
114
- if (groupContext) {
115
- groupContext.handleChange(value)
116
- }
117
- }
118
- },
119
- created () {
120
- const groupContext = this.groupContext
121
- if (groupContext) {
122
- groupContext.options.push(this)
123
- }
124
- },
125
- methods: {
126
- toggle () {
127
- if (this.groupContext.multiple || !this.sChecked) {
128
- this.sChecked = !this.sChecked
129
- }
130
- },
131
- initChecked () {
132
- const groupContext = this.groupContext
133
- if (!groupContext) {
134
- return this.checked
135
- } else if (groupContext.multiple) {
136
- return groupContext.defaultValues.indexOf(this.value) > -1
137
- } else {
138
- return groupContext.defaultValues[0] === this.value
139
- }
140
- }
141
- }
142
- }
143
- </script>
144
-
145
- <style lang="less" scoped>
146
- .theme-color{
147
- float: left;
148
- width: 20px;
149
- height: 20px;
150
- border-radius: 2px;
151
- cursor: pointer;
152
- margin-right: 8px;
153
- text-align: center;
154
- color: @base-bg-color;
155
- font-weight: bold;
156
- }
157
- </style>
1
+ <template>
2
+ <div class="theme-color" :style="{backgroundColor: color}" @click="toggle">
3
+ <a-icon v-if="sChecked" type="check" />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ const Group = {
9
+ name: 'ColorCheckboxGroup',
10
+ props: {
11
+ defaultValues: {
12
+ type: Array,
13
+ required: false,
14
+ default: () => []
15
+ },
16
+ multiple: {
17
+ type: Boolean,
18
+ required: false,
19
+ default: false
20
+ }
21
+ },
22
+ data () {
23
+ return {
24
+ values: [],
25
+ options: []
26
+ }
27
+ },
28
+ computed: {
29
+ colors () {
30
+ const colors = []
31
+ this.options.forEach(item => {
32
+ if (item.sChecked) {
33
+ colors.push(item.color)
34
+ }
35
+ })
36
+ return colors
37
+ }
38
+ },
39
+ provide () {
40
+ return {
41
+ groupContext: this
42
+ }
43
+ },
44
+ watch: {
45
+ values (value) {
46
+ this.$emit('change', value, this.colors)
47
+ }
48
+ },
49
+ methods: {
50
+ handleChange (option) {
51
+ if (!option.checked) {
52
+ if (this.values.indexOf(option.value) > -1) {
53
+ this.values = this.values.filter(item => item !== option.value)
54
+ }
55
+ } else {
56
+ if (!this.multiple) {
57
+ this.values = [option.value]
58
+ this.options.forEach(item => {
59
+ if (item.value !== option.value) {
60
+ item.sChecked = false
61
+ }
62
+ })
63
+ } else {
64
+ this.values.push(option.value)
65
+ }
66
+ }
67
+ }
68
+ },
69
+ render (h) {
70
+ const clear = h('div', { attrs: { style: 'clear: both' } })
71
+ return h(
72
+ 'div',
73
+ {},
74
+ [this.$slots.default, clear]
75
+ )
76
+ }
77
+ }
78
+
79
+ export default {
80
+ name: 'ColorCheckbox',
81
+ Group: Group,
82
+ props: {
83
+ color: {
84
+ type: String,
85
+ required: true
86
+ },
87
+ value: {
88
+ type: [String, Number],
89
+ required: true
90
+ },
91
+ checked: {
92
+ type: Boolean,
93
+ required: false,
94
+ default: false
95
+ }
96
+ },
97
+ data () {
98
+ return {
99
+ sChecked: this.initChecked()
100
+ }
101
+ },
102
+ computed: {
103
+ },
104
+ inject: ['groupContext'],
105
+ watch: {
106
+ sChecked: function () {
107
+ const value = {
108
+ value: this.value,
109
+ color: this.color,
110
+ checked: this.sChecked
111
+ }
112
+ this.$emit('change', value)
113
+ const groupContext = this.groupContext
114
+ if (groupContext) {
115
+ groupContext.handleChange(value)
116
+ }
117
+ }
118
+ },
119
+ created () {
120
+ const groupContext = this.groupContext
121
+ if (groupContext) {
122
+ groupContext.options.push(this)
123
+ }
124
+ },
125
+ methods: {
126
+ toggle () {
127
+ if (this.groupContext.multiple || !this.sChecked) {
128
+ this.sChecked = !this.sChecked
129
+ }
130
+ },
131
+ initChecked () {
132
+ const groupContext = this.groupContext
133
+ if (!groupContext) {
134
+ return this.checked
135
+ } else if (groupContext.multiple) {
136
+ return groupContext.defaultValues.indexOf(this.value) > -1
137
+ } else {
138
+ return groupContext.defaultValues[0] === this.value
139
+ }
140
+ }
141
+ }
142
+ }
143
+ </script>
144
+
145
+ <style lang="less" scoped>
146
+ .theme-color{
147
+ float: left;
148
+ width: 20px;
149
+ height: 20px;
150
+ border-radius: 2px;
151
+ cursor: pointer;
152
+ margin-right: 8px;
153
+ text-align: center;
154
+ color: @base-bg-color;
155
+ font-weight: bold;
156
+ }
157
+ </style>
@@ -1,66 +1,66 @@
1
- <template>
2
- <a-input
3
- :addon-after="addonAfter"
4
- :addon-before="addonBefore"
5
- :default-value="defaultValue"
6
- :disabled="disabled"
7
- :id="id"
8
- :max-length="maxLength"
9
- :prefix="prefix"
10
- :size="size"
11
- :suffix="suffix || lenSuffix"
12
- :type="type"
13
- :allow-clear="allowClear"
14
- v-model="sValue"
15
- :value="value"
16
- @change="onChange"
17
- @input="onInput"
18
- @pressEnter="onPressEnter"
19
- @keydown="onKeydown"
20
- >
21
- <template :slot="slot" v-for="slot in Object.keys($slots)">
22
- <slot :name="slot"></slot>
23
- </template>
24
- </a-input>
25
- </template>
26
-
27
- <script>
28
- export default {
29
- name: 'IInput',
30
- model: {
31
- prop: 'value',
32
- event: 'change.value'
33
- },
34
- props: ['addonAfter', 'addonBefore', 'defaultValue', 'disabled', 'id', 'maxLength', 'prefix', 'size', 'suffix', 'type', 'value', 'allowClear'],
35
- data () {
36
- return {
37
- sValue: this.value || this.defaultValue || ''
38
- }
39
- },
40
- watch: {
41
- value (val) {
42
- this.sValue = val
43
- }
44
- },
45
- computed: {
46
- lenSuffix () {
47
- return this.maxLength && `${(this.sValue + '').length}/${this.maxLength}`
48
- }
49
- },
50
- methods: {
51
- onChange (e) {
52
- this.$emit('change', e)
53
- this.$emit('change.value', e.target.value)
54
- },
55
- onInput (e) {
56
- this.$emit('input', e)
57
- },
58
- onPressEnter (e) {
59
- this.$emit('pressEnter', e)
60
- },
61
- onKeydown (e) {
62
- this.$emit('keydown', e)
63
- }
64
- }
65
- }
66
- </script>
1
+ <template>
2
+ <a-input
3
+ :addon-after="addonAfter"
4
+ :addon-before="addonBefore"
5
+ :default-value="defaultValue"
6
+ :disabled="disabled"
7
+ :id="id"
8
+ :max-length="maxLength"
9
+ :prefix="prefix"
10
+ :size="size"
11
+ :suffix="suffix || lenSuffix"
12
+ :type="type"
13
+ :allow-clear="allowClear"
14
+ v-model="sValue"
15
+ :value="value"
16
+ @change="onChange"
17
+ @input="onInput"
18
+ @pressEnter="onPressEnter"
19
+ @keydown="onKeydown"
20
+ >
21
+ <template :slot="slot" v-for="slot in Object.keys($slots)">
22
+ <slot :name="slot"></slot>
23
+ </template>
24
+ </a-input>
25
+ </template>
26
+
27
+ <script>
28
+ export default {
29
+ name: 'IInput',
30
+ model: {
31
+ prop: 'value',
32
+ event: 'change.value'
33
+ },
34
+ props: ['addonAfter', 'addonBefore', 'defaultValue', 'disabled', 'id', 'maxLength', 'prefix', 'size', 'suffix', 'type', 'value', 'allowClear'],
35
+ data () {
36
+ return {
37
+ sValue: this.value || this.defaultValue || ''
38
+ }
39
+ },
40
+ watch: {
41
+ value (val) {
42
+ this.sValue = val
43
+ }
44
+ },
45
+ computed: {
46
+ lenSuffix () {
47
+ return this.maxLength && `${(this.sValue + '').length}/${this.maxLength}`
48
+ }
49
+ },
50
+ methods: {
51
+ onChange (e) {
52
+ this.$emit('change', e)
53
+ this.$emit('change.value', e.target.value)
54
+ },
55
+ onInput (e) {
56
+ this.$emit('input', e)
57
+ },
58
+ onPressEnter (e) {
59
+ this.$emit('pressEnter', e)
60
+ },
61
+ onKeydown (e) {
62
+ this.$emit('keydown', e)
63
+ }
64
+ }
65
+ }
66
+ </script>