vue2-client 1.8.124 → 1.8.125

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,10 +1,9 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.8.124 -2024-4-1 @陈博晨**
4
+ **1.8.124 - 1.8.125 -2024-4-1 @陈博晨**
5
5
  - 修复路由bug, 修复axios响应拦截器, 还原一些物采平台需要的组件
6
6
 
7
-
8
7
  **1.8.123 -2024-4-1 @陈博晨**
9
8
  - 修改密码增加校验规则
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.124",
3
+ "version": "1.8.125",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,128 +1,128 @@
1
- <template>
2
- <div class="reportMain">
3
- <h2 class="reportTitle" v-html="config.title"></h2>
4
- <table class="reportTable">
5
- <tbody>
6
- <template v-for="(row, rowIndex) in config.columns">
7
- <template v-if="row[0].type !== 'inputColumns'">
8
- <tr :key="rowIndex">
9
- <td v-for="(cell, cellIndex) in row" :key="cellIndex" :colspan="cell.colSpan ? cell.colSpan : undefined" :rowspan="cell.rowSpan ? cell.rowSpan : undefined">
10
- <template v-if="cell.type === 'column'">
11
- {{ cell.text }}
12
- </template>
13
- <template v-else-if="cell.type === 'value'">
14
- {{ cell.value }}
15
- </template>
16
- <template v-else-if="cell.type === 'input'">
17
- <a-input v-model="data[cell.dataIndex]" />
18
- </template>
19
- <template v-else-if="cell.type === 'inputs'">
20
- <a-input v-model="data[cell.dataIndex]" />
21
- </template>
22
- </td>
23
- </tr>
24
- </template>
25
- <template v-else>
26
- <tr v-for="(item, definitionIndex) in data[row[0].dataIndex]" :key="row[0].dataIndex + definitionIndex">
27
- <td v-for="(cell, cellIndex) in row[0].definition" :key="cellIndex" :colspan="cell.colSpan ? cell.colSpan : undefined" :rowspan="cell.rowSpan ? cell.rowSpan : undefined">
28
- <template v-if="cell.type === 'column'">
29
- {{ cell.text }}
30
- </template>
31
- <template v-else-if="cell.type === 'value'">
32
- {{ cell.value }}
33
- </template>
34
- <template v-else-if="cell.type === 'input'">
35
- <a-input v-model="data[row[0].dataIndex][definitionIndex][cell.dataIndex]" />
36
- </template>
37
- <template v-else-if="cell.type === 'inputs'">
38
- <a-input v-model="data[row[0].dataIndex][definitionIndex][cell.dataIndex]" />
39
- </template>
40
- </td>
41
- </tr>
42
- <tr :key="'dataAction' + rowIndex">
43
- <td :colspan="maxColSpan">
44
- <a-button-group>
45
- <a-button @click="addData(data[row[0].dataIndex])"><a-icon type="plus"/></a-button>
46
- <a-button @click="removeData(data[row[0].dataIndex])"><a-icon type="minus"/></a-button>
47
- </a-button-group>
48
- </td>
49
- </tr>
50
- </template>
51
- </template>
52
- </tbody>
53
- </table>
54
- </div>
55
- </template>
56
-
57
- <script>
58
- export default {
59
- name: 'XReport',
60
- props: {
61
- config: {
62
- type: Object,
63
- required: true
64
- }
65
- },
66
- data () {
67
- return {
68
- data: this.config.data,
69
- maxColSpan: 12
70
- }
71
- },
72
- methods: {
73
- removeData (dataItem) {
74
- if (dataItem.length === 0) {
75
- this.$message.warn('已经没有更多了')
76
- return
77
- }
78
- dataItem.pop()
79
- },
80
- addData (dataItem) {
81
- dataItem.push({
82
- no: '',
83
- sort: '',
84
- content: '',
85
- finishTime: ''
86
- })
87
- }
88
- },
89
- }
90
- </script>
91
-
92
- <style lang="less" scoped>
93
- .reportMain {
94
- width: 800px;
95
- text-align: center;
96
- margin: 0 auto;
97
- font-size: 16px;
98
- color: #000;
99
- background-color: #fff;
100
- padding: 15px;
101
- border-radius: 8px;
102
-
103
- .reportTitle {
104
- font-weight: bold;
105
- }
106
-
107
- .reportTable {
108
- width: 100%;
109
- border-collapse: collapse;
110
- table-layout:fixed;
111
- word-break:break-all;
112
- }
113
-
114
- td {
115
- border: 1px solid #000;
116
- padding: 8px;
117
- }
118
-
119
- input {
120
- width: 100%;
121
- box-sizing: border-box;
122
- }
123
-
124
- .innerTable {
125
- width: 784px;
126
- }
127
- }
128
- </style>
1
+ <template>
2
+ <div class="reportMain">
3
+ <h2 class="reportTitle" v-html="config.title"></h2>
4
+ <table class="reportTable">
5
+ <tbody>
6
+ <template v-for="(row, rowIndex) in config.columns">
7
+ <template v-if="row[0].type !== 'inputColumns'">
8
+ <tr :key="rowIndex">
9
+ <td v-for="(cell, cellIndex) in row" :key="cellIndex" :colspan="cell.colSpan ? cell.colSpan : undefined" :rowspan="cell.rowSpan ? cell.rowSpan : undefined">
10
+ <template v-if="cell.type === 'column'">
11
+ {{ cell.text }}
12
+ </template>
13
+ <template v-else-if="cell.type === 'value'">
14
+ {{ cell.value }}
15
+ </template>
16
+ <template v-else-if="cell.type === 'input'">
17
+ <a-input v-model="data[cell.dataIndex]" />
18
+ </template>
19
+ <template v-else-if="cell.type === 'inputs'">
20
+ <a-input v-model="data[cell.dataIndex]" />
21
+ </template>
22
+ </td>
23
+ </tr>
24
+ </template>
25
+ <template v-else>
26
+ <tr v-for="(item, definitionIndex) in data[row[0].dataIndex]" :key="row[0].dataIndex + definitionIndex">
27
+ <td v-for="(cell, cellIndex) in row[0].definition" :key="cellIndex" :colspan="cell.colSpan ? cell.colSpan : undefined" :rowspan="cell.rowSpan ? cell.rowSpan : undefined">
28
+ <template v-if="cell.type === 'column'">
29
+ {{ cell.text }}
30
+ </template>
31
+ <template v-else-if="cell.type === 'value'">
32
+ {{ cell.value }}
33
+ </template>
34
+ <template v-else-if="cell.type === 'input'">
35
+ <a-input v-model="data[row[0].dataIndex][definitionIndex][cell.dataIndex]" />
36
+ </template>
37
+ <template v-else-if="cell.type === 'inputs'">
38
+ <a-input v-model="data[row[0].dataIndex][definitionIndex][cell.dataIndex]" />
39
+ </template>
40
+ </td>
41
+ </tr>
42
+ <tr :key="'dataAction' + rowIndex">
43
+ <td :colspan="maxColSpan">
44
+ <a-button-group>
45
+ <a-button @click="addData(data[row[0].dataIndex])"><a-icon type="plus"/></a-button>
46
+ <a-button @click="removeData(data[row[0].dataIndex])"><a-icon type="minus"/></a-button>
47
+ </a-button-group>
48
+ </td>
49
+ </tr>
50
+ </template>
51
+ </template>
52
+ </tbody>
53
+ </table>
54
+ </div>
55
+ </template>
56
+
57
+ <script>
58
+ export default {
59
+ name: 'XReport',
60
+ props: {
61
+ config: {
62
+ type: Object,
63
+ required: true
64
+ }
65
+ },
66
+ data () {
67
+ return {
68
+ data: this.config.data,
69
+ maxColSpan: 12
70
+ }
71
+ },
72
+ methods: {
73
+ removeData (dataItem) {
74
+ if (dataItem.length === 0) {
75
+ this.$message.warn('已经没有更多了')
76
+ return
77
+ }
78
+ dataItem.pop()
79
+ },
80
+ addData (dataItem) {
81
+ dataItem.push({
82
+ no: '',
83
+ sort: '',
84
+ content: '',
85
+ finishTime: ''
86
+ })
87
+ }
88
+ },
89
+ }
90
+ </script>
91
+
92
+ <style lang="less" scoped>
93
+ .reportMain {
94
+ width: 800px;
95
+ text-align: center;
96
+ margin: 0 auto;
97
+ font-size: 16px;
98
+ color: #000;
99
+ background-color: #fff;
100
+ padding: 15px;
101
+ border-radius: 8px;
102
+
103
+ .reportTitle {
104
+ font-weight: bold;
105
+ }
106
+
107
+ .reportTable {
108
+ width: 100%;
109
+ border-collapse: collapse;
110
+ table-layout:fixed;
111
+ word-break:break-all;
112
+ }
113
+
114
+ td {
115
+ border: 1px solid #000;
116
+ padding: 8px;
117
+ }
118
+
119
+ input {
120
+ width: 100%;
121
+ box-sizing: border-box;
122
+ }
123
+
124
+ .innerTable {
125
+ width: 784px;
126
+ }
127
+ }
128
+ </style>
@@ -1,3 +1,3 @@
1
- import XReport from './XReport'
2
-
3
- export default XReport
1
+ import XReport from './XReport'
2
+
3
+ export default XReport
@@ -1,38 +1,38 @@
1
- # XReport
2
-
3
- 动态报表控件,根据JSON配置生成一个完整的报表
4
-
5
-
6
- ## 何时使用
7
-
8
- 当需要一个动态生成的报表时
9
-
10
-
11
- 引用方式:
12
-
13
- ```javascript
14
- import XReport from '@vue2-client/base-client/components/XReport/XReport'
15
-
16
- export default {
17
- components: {
18
- XReport
19
- }
20
- }
21
- ```
22
-
23
-
24
-
25
- ## 代码演示
26
-
27
- ```html
28
- ```
29
-
30
- ## API
31
-
32
- | 参数 | 说明 | 类型 | 默认值 |
33
- |-----------------|--------------------------|--------|------|
34
-
35
- ## 例子1
36
- ----
37
- ```
38
- ```
1
+ # XReport
2
+
3
+ 动态报表控件,根据JSON配置生成一个完整的报表
4
+
5
+
6
+ ## 何时使用
7
+
8
+ 当需要一个动态生成的报表时
9
+
10
+
11
+ 引用方式:
12
+
13
+ ```javascript
14
+ import XReport from '@vue2-client/base-client/components/XReport/XReport'
15
+
16
+ export default {
17
+ components: {
18
+ XReport
19
+ }
20
+ }
21
+ ```
22
+
23
+
24
+
25
+ ## 代码演示
26
+
27
+ ```html
28
+ ```
29
+
30
+ ## API
31
+
32
+ | 参数 | 说明 | 类型 | 默认值 |
33
+ |-----------------|--------------------------|--------|------|
34
+
35
+ ## 例子1
36
+ ----
37
+ ```
38
+ ```