af-mobile-client-vue3 1.0.70 → 1.0.72

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.
@@ -2,293 +2,11 @@
2
2
  import { ref } from 'vue'
3
3
  import XReportForm from '@af-mobile-client-vue3/components/data/XReportForm/index.vue'
4
4
 
5
- // test_table_config_forEditor
6
- // test_tableConfig
7
- // test_table_config_json
8
- const configName = ref('report_yangchun_gasEqiupmentWidePic')
9
- // const slotName = ref('test_tableConfig_slot')
10
-
11
- const temp_config = {
12
- slotsDefine: {},
13
- subTitle: [],
14
- slotsDeclare: [],
15
- data: {
16
- images: {
17
- serviceall: {
18
- imgs: [],
19
- },
20
- },
21
- },
22
- columns: [
23
- [
24
- {
25
- rowSpan: 1,
26
- colSpan: 12,
27
- text: '燃气设施全景',
28
- originalRowIndex: 0,
29
- type: 'column',
30
- originalCellIndex: 0,
31
- },
32
- ],
33
- [
34
- {
35
- rowSpan: 1,
36
- colSpan: 12,
37
- dataIndex: 'serviceall@@@imgs',
38
- originalRowIndex: 1,
39
- type: 'images',
40
- originalCellIndex: 0,
41
- },
42
- ],
43
- ],
44
- width: 'auto',
45
- style: {},
46
- title: '',
47
- table: [
48
- [
49
- {
50
- rowSpan: 1,
51
- def: {
52
- text: '燃气设施全景',
53
- type: 'column',
54
- },
55
- colSpan: 12,
56
- originalRowIndex: 0,
57
- originalCellIndex: 0,
58
- },
59
- ],
60
- [
61
- {
62
- rowSpan: 1,
63
- def: {
64
- dataIndex: 'serviceall@@@imgs',
65
- type: 'images',
66
- },
67
- colSpan: 12,
68
- originalRowIndex: 1,
69
- originalCellIndex: 0,
70
- },
71
- ],
72
- ],
73
- designMode: 'VisualTable',
74
- }
75
- // const test_json_data = { usermeter: { f_collection_type: '按金额', f_total_gas: '总气量', f_total_fee: '总金额' } }
76
- //
77
- // const report_yangchun_serviceRepair = {
78
- // title: {
79
- // type: 'titleKey',
80
- // value: 'f_type',
81
- // },
82
- // content: [
83
- // {
84
- // customFunctionForLabel: 'function (config) {\n\treturn { type: \'key\', content: \'f_project\' }\n}',
85
- // customFunctionForValue: 'function (config, item) {\n if (!item.f_content || item.f_content === null) {\n return { type: \'value\', content: \'无\' }\n }else {\n return { type: \'key\', content: \'f_content\'}\n }\n}',
86
- // jsonArrayDataIndex: 'details',
87
- // type: 'jsonArray',
88
- // },
89
- // ],
90
- // designMode: 'json',
91
- // testJsonData: {
92
- // imgs: [],
93
- // details: [
94
- // {
95
- // f_project: '旧表表号',
96
- // f_service_id: 35917,
97
- // f_is_must: 'false',
98
- // id: 224392,
99
- // type: 'string',
100
- // },
101
- // {
102
- // f_project: '新表表号',
103
- // f_service_id: 35917,
104
- // f_is_must: 'false',
105
- // id: 224393,
106
- // type: 'string',
107
- // },
108
- // {
109
- // f_project: '引入方式',
110
- // f_service_id: 35917,
111
- // f_is_must: 'false',
112
- // id: 224394,
113
- // type: 'selector',
114
- // },
115
- // {
116
- // f_project: '是否高空作业',
117
- // f_service_id: 35917,
118
- // f_is_must: 'false',
119
- // id: 224395,
120
- // type: 'selector',
121
- // },
122
- // {
123
- // f_project: '处理结果',
124
- // f_service_id: 35917,
125
- // f_is_must: 'false',
126
- // id: 224396,
127
- // type: 'selector',
128
- // },
129
- // {
130
- // f_project: '位置',
131
- // f_service_id: 35917,
132
- // f_is_must: 'false',
133
- // id: 224397,
134
- // type: 'selector',
135
- // },
136
- // {
137
- // f_project: '补装管卡',
138
- // f_service_id: 35917,
139
- // f_is_must: 'false',
140
- // id: 224398,
141
- // type: 'selector',
142
- // },
143
- // {
144
- // f_project: '备注',
145
- // f_service_id: 35917,
146
- // f_is_must: 'false',
147
- // id: 224399,
148
- // type: 'string',
149
- // },
150
- // ],
151
- // id: 35917,
152
- // f_type: '改管维修',
153
- // },
154
- // }
155
- // const report_yangchun_serviceRepair_data = {
156
- // usermeter: {
157
- // f_collection_type: '按金额',
158
- // f_total_gas: '总气量',
159
- // f_total_fee: '总金额',
160
- // },
161
- // }
162
- //
163
- // const deepKeyConfig = {
164
- // slotsDefine: {},
165
- // subTitle: [],
166
- // slotsDeclare: [],
167
- // data: {
168
- // 'images': {},
169
- // 'a1a2@@@a3': '',
170
- // },
171
- // columns: [
172
- // [
173
- // {
174
- // rowSpan: 1,
175
- // colSpan: 3,
176
- // text: 'deepKey测试',
177
- // originalRowIndex: 0,
178
- // type: 'column',
179
- // originalCellIndex: 0,
180
- // },
181
- // {
182
- // rowSpan: 1,
183
- // dataIndexType: 'String',
184
- // colSpan: 3,
185
- // dataIndex: 'a1@@@a2@@@a3',
186
- // originalRowIndex: 0,
187
- // type: 'input',
188
- // originalCellIndex: 3,
189
- // },
190
- // {
191
- // rowSpan: 1,
192
- // colSpan: 3,
193
- // text: '动态表头测试',
194
- // originalRowIndex: 0,
195
- // type: 'column',
196
- // originalCellIndex: 6,
197
- // },
198
- // {
199
- // rowSpan: 1,
200
- // customFunction: 'function (val, config) {\n if (config.data.f_label === \'123\') {\n return \'A\'\n } else {\n return \'B\'\n }\n}',
201
- // colSpan: 3,
202
- // text: '1',
203
- // originalRowIndex: 0,
204
- // type: 'column',
205
- // originalCellIndex: 9,
206
- // },
207
- // ],
208
- // ],
209
- // width: 'auto',
210
- // style: {},
211
- // title: '测试deepKey',
212
- // designMode: 'VisualTable',
213
- // }
214
- // const deepKeyConfigData = {
215
- // a1: {
216
- // a2: {
217
- // a3: '我是a3',
218
- // },
219
- // },
220
- // f_label: '123',
221
- // }
222
- //
223
- // const yangchun_ticket = {
224
- // slotsDefine: {},
225
- // subTitle: [],
226
- // slotsDeclare: [],
227
- // data: {
228
- // images: {
229
- // 'serviceall@@@imgs': [],
230
- // },
231
- // },
232
- // columns: [
233
- // [
234
- // {
235
- // rowSpan: 1,
236
- // colSpan: 12,
237
- // text: '燃气设施全景',
238
- // originalRowIndex: 0,
239
- // type: 'column',
240
- // originalCellIndex: 0,
241
- // },
242
- // ],
243
- // [
244
- // {
245
- // rowSpan: 1,
246
- // colSpan: 12,
247
- // dataIndex: 'serviceall@@@imgs',
248
- // originalRowIndex: 1,
249
- // type: 'images',
250
- // originalCellIndex: 0,
251
- // },
252
- // ],
253
- // ],
254
- // width: 'auto',
255
- // style: {},
256
- // title: '',
257
- // table: [
258
- // [
259
- // {
260
- // rowSpan: 1,
261
- // def: {
262
- // text: '燃气设施全景',
263
- // type: 'column',
264
- // },
265
- // colSpan: 12,
266
- // originalRowIndex: 0,
267
- // originalCellIndex: 0,
268
- // },
269
- // ],
270
- // [
271
- // {
272
- // rowSpan: 1,
273
- // def: {
274
- // dataIndex: 'serviceall@@@imgs',
275
- // type: 'images',
276
- // },
277
- // colSpan: 12,
278
- // originalRowIndex: 1,
279
- // originalCellIndex: 0,
280
- // },
281
- // ],
282
- // ],
283
- // designMode: 'VisualTable',
284
- // }
5
+ const configName = ref('ceshi1')
285
6
  </script>
286
7
 
287
8
  <template>
288
- <!-- <XReportForm :config-name="configName" :show-input-columns-label-on-title="true"/> -->
289
- <!-- <XReportForm :config-name="configName" :config-data="test_json_data" :local-config="temp_config" /> -->
290
- <!-- <XReportForm :config-name="configName" :local-config="temp_config" /> -->
291
- <XReportForm :config-name="configName" :local-config="temp_config" />
9
+ <XReportForm :config-name="configName" />
292
10
  </template>
293
11
 
294
12
  <style scoped lang="less">
@@ -0,0 +1,50 @@
1
+ <script setup lang="ts">
2
+ import { ref } from 'vue'
3
+ import { Image as VanImage, showToast } from 'vant'
4
+ import XSignature from '@af-mobile-client-vue3/components/data/XSignature/index.vue'
5
+ import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
6
+
7
+ const signatureImage = ref('')
8
+
9
+ function handleSave() {
10
+ showToast('签名已保存')
11
+ }
12
+
13
+ function handleClear() {
14
+ showToast('签名已清除')
15
+ }
16
+ </script>
17
+
18
+ <template>
19
+ <NormalDataLayout title="签名组件">
20
+ <template #layout_content>
21
+ 基础使用
22
+ <div class="signature-demo">
23
+ <XSignature v-model="signatureImage" @save="handleSave" @clear="handleClear" />
24
+ <div v-if="signatureImage" class="preview">
25
+ <h3>预览签名</h3>
26
+ <VanImage v-if="signatureImage" :src="signatureImage" />
27
+ </div>
28
+ </div>
29
+ </template>
30
+ </NormalDataLayout>
31
+ </template>
32
+
33
+ <style scoped lang="less">
34
+ .signature-demo {
35
+ padding: 16px;
36
+ .preview {
37
+ margin-top: 20px;
38
+ h3 {
39
+ margin: 0 0 10px;
40
+ font-size: 16px;
41
+ color: #323233;
42
+ }
43
+ img {
44
+ max-width: 100%;
45
+ border: 1px solid #ebedf0;
46
+ border-radius: 8px;
47
+ }
48
+ }
49
+ }
50
+ </style>
@@ -26,10 +26,18 @@ const list = ref([
26
26
  name: 'XForm 表单',
27
27
  to: '/Component/XFormView/1/debug',
28
28
  },
29
+ {
30
+ name: '操作卡手机端',
31
+ to: '/Component/XReportFormView',
32
+ },
29
33
  {
30
34
  name: '评论记录列表',
31
35
  to: '/Component/EvaluateRecordView',
32
36
  },
37
+ {
38
+ name: 'XSignature 签名组件',
39
+ to: '/Component/XSignatureView',
40
+ },
33
41
  ])
34
42
 
35
43
  function cleanConfigCache() {
@@ -69,7 +77,7 @@ async function logout() {
69
77
  <style scoped lang="less">
70
78
  .home_main {
71
79
  width: 100vw;
72
- height: 100vh;
80
+ height: 100%;
73
81
  padding: var(--base-interval-2);
74
82
  background-color: #eff2f5;
75
83
  .home_title {
package/vite.config.ts CHANGED
@@ -92,7 +92,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
92
92
  viewport({
93
93
  appSelector: '#system-app',
94
94
  viewportWidth: 375,
95
- maxDisplayWidth: 600,
95
+ maxDisplayWidth: 800,
96
96
  appContainingBlock: 'auto',
97
97
  necessarySelectorWhenAuto: '.app-wrapper',
98
98
  rootContainingBlockSelectorList: ['van-tabbar', 'van-popup'],