vue2-client 1.13.7 → 1.13.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.13.7",
3
+ "version": "1.13.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -57,7 +57,7 @@
57
57
  :parameter="panel.parameter"
58
58
  :countVisible="false"
59
59
  :env="env"
60
- @delete="deleteData"
60
+ @deleteData="deleteData"
61
61
  @add="add"
62
62
  @listClick="listClick"
63
63
  @click="click"/>
@@ -1,131 +1,158 @@
1
- <template>
2
- <div class="list-wrapper">
3
- <a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
4
- <a-list-item slot="renderItem" slot-scope="item, index" class="list-item" @click="handleClick(index)">
5
- <i
6
- v-if="icon"
7
- class="icon-menu"
8
- :style="getIconStyle(item)"
9
- ></i>
10
- <span
11
- class="item-text">
12
- {{ item.number }} {{ item.name }}
13
- </span>
14
- <a-button v-if="button" type="link" class="confirm-btn" @click.stop="click(index)">{{ buttonName }}</a-button>
15
- </a-list-item>
16
- </a-list>
17
- </div>
18
- </template>
19
-
20
- <script>
21
-
22
- import { runLogic } from '@vue2-client/services/api/common'
23
-
24
- export default {
25
- name: 'XList',
26
- props: {
27
- queryParamsName: {
28
- type: Object,
29
- default: null
30
- }
31
- },
32
- inject: ['getComponentByName'],
33
- data () {
34
- return {
35
- data: [],
36
- button: false,
37
- icon: false,
38
- buttonName: ''
39
- }
40
- },
41
- created () {
42
- this.getData(this.queryParamsName)
43
- },
44
- methods: {
45
- async getData (config) {
46
- runLogic(config, {}, 'af-his').then(res => {
47
- this.button = res.button
48
- this.icon = res.icon
49
- this.buttonName = res.buttonName
50
- this.data = res.data
51
- })
52
- },
53
- handleClick (index) {
54
- this.$emit('listClick', this.data[index])
55
- },
56
- refreshList () {
57
- this.getData(this.queryParamsName)
58
- },
59
- click (index) {
60
- this.$emit('click', this.data[index])
61
- },
62
- getIconStyle (item) {
63
- return item.picture
64
- ? { backgroundImage: `url(${item.picture})` }
65
- : {}
66
- },
67
- filterData (par) {
68
- runLogic(this.queryParamsName, par, 'af-his').then(res => {
69
- this.data = res.data
70
- })
71
- }
72
- }
73
- }
74
- </script>
75
-
76
- <style scoped>
77
- .list-wrapper {
78
- max-height: 240px;
79
- overflow-y: auto;
80
- padding-right: 2px;
81
- }
82
-
83
- .list-container {
84
- width: 100%;
85
- }
86
-
87
- .list-item {
88
- height: 35px;
89
- border-radius: 6px;
90
- background-color: #F4F4F4;
91
- padding: 8px 15px;
92
- font-size: 16px;
93
- display: flex;
94
- align-items: center;
95
- width: 100%;
96
- border: 1px solid #D9D9D9;
97
- box-sizing: border-box;
98
- margin-bottom: 8px !important;
99
- }
100
-
101
- .icon-menu {
102
- display: inline-block;
103
- width: 20px;
104
- height: 20px;
105
- background-color: #ccc;
106
- margin-right: 8px;
107
- }
108
-
109
- .item-text {
110
- flex: 1;
111
- }
112
-
113
- .confirm-btn {
114
- margin-left: auto;
115
- padding: 0 8px;
116
- }
117
-
118
- /* 自定义滚动条样式 */
119
- .list-wrapper::-webkit-scrollbar {
120
- width: 6px;
121
- }
122
-
123
- .list-wrapper::-webkit-scrollbar-thumb {
124
- background-color: #d9d9d9;
125
- border-radius: 3px;
126
- }
127
-
128
- .list-wrapper::-webkit-scrollbar-track {
129
- background-color: #f0f0f0;
130
- }
131
- </style>
1
+ <template>
2
+ <div class="list-wrapper">
3
+ <a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
4
+ <a-list-item slot="renderItem" slot-scope="item, index" class="list-item" @click="handleClick(index)">
5
+ <i
6
+ v-if="icon"
7
+ class="icon-menu"
8
+ :style="getIconStyle(item)"
9
+ ></i>
10
+ <span
11
+ class="item-text">
12
+ {{ item.number }} {{ item.name }}
13
+ </span>
14
+
15
+ <div v-if="button" class="button-group">
16
+ <a-button
17
+ v-for="(name, idx) in buttonNames"
18
+ :key="idx"
19
+ type="link"
20
+ :class="['confirm-btn', buttonMode ? 'hover-btn' : '']"
21
+ @click.stop="click(index, idx)"
22
+ >
23
+ {{ name }}
24
+ </a-button>
25
+ </div>
26
+ </a-list-item>
27
+ </a-list>
28
+ </div>
29
+ </template>
30
+
31
+ <script>
32
+
33
+ import { runLogic } from '@vue2-client/services/api/common'
34
+
35
+ export default {
36
+ name: 'XList',
37
+ props: {
38
+ queryParamsName: {
39
+ type: Object,
40
+ default: null
41
+ }
42
+ },
43
+ inject: ['getComponentByName'],
44
+ data () {
45
+ return {
46
+ data: [],
47
+ button: false,
48
+ icon: false,
49
+ buttonNames: [],
50
+ buttonMode: false
51
+ }
52
+ },
53
+ created () {
54
+ this.getData(this.queryParamsName)
55
+ },
56
+ methods: {
57
+ async getData (config) {
58
+ runLogic(config, {}, 'af-his').then(res => {
59
+ this.button = res.button
60
+ this.icon = res.icon
61
+ this.buttonNames = res.buttonNames || []
62
+ this.buttonMode = res.buttonMode || false
63
+ this.data = res.data
64
+ })
65
+ },
66
+ handleClick (index) {
67
+ this.$emit('listClick', this.data[index])
68
+ },
69
+ refreshList () {
70
+ this.getData(this.queryParamsName)
71
+ },
72
+ click (index, buttonIndex) {
73
+ this.$emit('click', { data: this.data[index], name: this.buttonNames[buttonIndex] })
74
+ },
75
+ getIconStyle (item) {
76
+ return item.picture
77
+ ? { backgroundImage: `url(${item.picture})` }
78
+ : {}
79
+ },
80
+ filterData (par) {
81
+ runLogic(this.queryParamsName, par, 'af-his').then(res => {
82
+ this.data = res.data
83
+ })
84
+ }
85
+ }
86
+ }
87
+ </script>
88
+
89
+ <style scoped>
90
+ .list-wrapper {
91
+ max-height: 240px;
92
+ overflow-y: auto;
93
+ padding-right: 2px;
94
+ }
95
+
96
+ .list-container {
97
+ width: 100%;
98
+ }
99
+
100
+ .list-item {
101
+ height: 35px;
102
+ border-radius: 6px;
103
+ background-color: #F4F4F4;
104
+ padding: 8px 15px;
105
+ font-size: 16px;
106
+ display: flex;
107
+ align-items: center;
108
+ width: 100%;
109
+ border: 1px solid #D9D9D9;
110
+ box-sizing: border-box;
111
+ margin-bottom: 8px !important;
112
+ }
113
+
114
+ .icon-menu {
115
+ display: inline-block;
116
+ width: 20px;
117
+ height: 20px;
118
+ background-color: #ccc;
119
+ margin-right: 8px;
120
+ }
121
+
122
+ .item-text {
123
+ flex: 1;
124
+ }
125
+
126
+ .confirm-btn {
127
+ margin-left: auto;
128
+ padding: 0 8px;
129
+ }
130
+
131
+ .confirm-btn.hover-btn {
132
+ opacity: 0;
133
+ transition: opacity 0.3s ease;
134
+ }
135
+
136
+ .button-group {
137
+ display: flex;
138
+ gap: 2px; /* 按钮之间的间距 */
139
+ }
140
+
141
+ .list-item:hover .confirm-btn.hover-btn {
142
+ opacity: 1;
143
+ }
144
+
145
+ /* 自定义滚动条样式 */
146
+ .list-wrapper::-webkit-scrollbar {
147
+ width: 6px;
148
+ }
149
+
150
+ .list-wrapper::-webkit-scrollbar-thumb {
151
+ background-color: #d9d9d9;
152
+ border-radius: 3px;
153
+ }
154
+
155
+ .list-wrapper::-webkit-scrollbar-track {
156
+ background-color: #f0f0f0;
157
+ }
158
+ </style>
@@ -90,7 +90,7 @@ export default {
90
90
  { key: '7', label: '换表查询', permission: '换表查询', component: 'ChangeMeterRecordQuery' },
91
91
  { key: '8', label: '其他收费', permission: '其他收费', component: 'OtherChargeRecordQuery' },
92
92
  { key: '9', label: '过户查询', permission: '过户查询', component: 'TransferRecordQuery' },
93
- { key: '10', label: '档案变更记录', permission: '变更记录', component: 'UserException' },
93
+ { key: '10', label: '档案变更记录', permission: '变更记录', component: 'InfoChangeRecordQuery' },
94
94
  {
95
95
  key: '11',
96
96
  label: '指令查看',
@@ -54,7 +54,7 @@ routerResource.example = {
54
54
  name: '示例主页面',
55
55
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelect.vue'),
56
56
  // component: () => import('@vue2-client/base-client/components/his/XTitle/XTitle.vue'),
57
- component: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
57
+ // component: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
58
58
  // component: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
59
59
  // component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
60
60
  // component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
@@ -78,7 +78,7 @@ routerResource.example = {
78
78
  // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
79
79
  // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
80
80
  // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
81
- // component: () => import('@vue2-client/pages/ReportGrid/index.vue')
81
+ component: () => import('@vue2-client/pages/ReportGrid/index.vue')
82
82
  }
83
83
  // routerResource.example = () =>
84
84
  // import('@vue2-client/pages/Example')