vue2-client 1.8.80 → 1.8.82

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 (26) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +1 -1
  3. package/src/base-client/components/common/XForm/XFormItem.vue +36 -22
  4. package/src/base-client/components/index.js +0 -6
  5. package/src/pages/DynamicStatistics/ChartSelector.vue +20 -6
  6. package/src/pages/DynamicStatistics/DynamicTable.vue +4 -1
  7. package/src/pages/DynamicStatistics/QuestionHistoryAndFavorites.vue +3 -1
  8. package/src/pages/DynamicStatistics/SearchBar.vue +65 -17
  9. package/src/pages/DynamicStatistics/index.vue +9 -0
  10. package/src/router/async/router.map.js +0 -2
  11. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +0 -669
  12. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +0 -1014
  13. package/src/base-client/components/common/CreateQuery/index.js +0 -3
  14. package/src/base-client/components/common/CreateQuery/index.md +0 -42
  15. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +0 -452
  16. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +0 -511
  17. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +0 -3
  18. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +0 -42
  19. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +0 -149
  20. package/src/base-client/components/common/FormGroupEdit/index.js +0 -3
  21. package/src/base-client/components/common/FormGroupEdit/index.md +0 -43
  22. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +0 -166
  23. package/src/base-client/components/common/FormGroupQuery/index.js +0 -3
  24. package/src/base-client/components/common/FormGroupQuery/index.md +0 -43
  25. package/src/config/CreateQueryConfig.js +0 -322
  26. package/src/pages/CreateQueryPage.vue +0 -160
@@ -1,322 +0,0 @@
1
- module.exports = {
2
- // 数据模式类型
3
- dataModeType: [
4
- {
5
- label: '渲染查询表单项',
6
- value: 'queryForm',
7
- noMatch: ['file', 'image', 'textarea', 'personSetting']
8
- },
9
- {
10
- label: '渲染表格列',
11
- value: 'table',
12
- noMatch: ['file', 'image', 'personSetting']
13
- },
14
- {
15
- label: '渲染新增/修改表单项',
16
- value: 'addOrEditForm',
17
- noMatch: []
18
- },
19
- {
20
- label: 'SQL生成查询项',
21
- value: 'sqlQueryItem',
22
- noMatch: ['file', 'personSetting']
23
- },
24
- {
25
- label: 'SQL生成查询表达式',
26
- value: 'sqlQueryCondition',
27
- noMatch: ['file', 'image', 'textarea', 'personSetting']
28
- },
29
- {
30
- label: 'Excel导入项',
31
- value: 'excelImportItem',
32
- noMatch: ['file', 'image', 'personSetting']
33
- },
34
- {
35
- label: '数据组',
36
- value: 'group',
37
- noMatch: []
38
- },
39
- {
40
- label: '动态表名参数',
41
- value: 'mixinTableName',
42
- noMatch: []
43
- }
44
- ],
45
- // 表单类型
46
- formType: [
47
- {
48
- label: '输入框', key: 'input'
49
- },
50
- {
51
- label: '选择框', key: 'select'
52
- },
53
- {
54
- label: '多选框', key: 'checkbox'
55
- },
56
- {
57
- label: '树形选择框', key: 'treeSelect'
58
- },
59
- {
60
- label: '地点搜索框', key: 'addressSearch'
61
- },
62
- {
63
- label: '省市区选择框', key: 'citySelect'
64
- },
65
- {
66
- label: '单选框', key: 'radio'
67
- },
68
- {
69
- label: '日期范围选择框', key: 'rangePicker'
70
- },
71
- {
72
- label: '年份选择框', key: 'yearPicker'
73
- },
74
- {
75
- label: '月份选择框', key: 'monthPicker'
76
- },
77
- {
78
- label: '单日选择框', key: 'datePicker'
79
- },
80
- {
81
- label: '文本域', key: 'textarea'
82
- },
83
- {
84
- label: '文件上传', key: 'file'
85
- },
86
- {
87
- label: '图片上传', key: 'image'
88
- },
89
- {
90
- label: '人员选择框', key: 'personSetting'
91
- },
92
- ],
93
- // 文件上传类型
94
- fileType: [
95
- {
96
- label: '无限制',
97
- accept: '*'
98
- },
99
- {
100
- label: 'word文档',
101
- accept: '.doc,.docx,'
102
- },
103
- {
104
- label: 'excel表格',
105
- accept: '.xls,.xlsx,'
106
- },
107
- {
108
- label: 'ppt幻灯片',
109
- accept: '.ppt,.pptx,'
110
- },
111
- {
112
- label: '图片',
113
- accept: '.jpg,.jpeg,.ico,.gif,svg,.webp,.png,.bmp,.pjpeg,'
114
- },
115
- {
116
- label: '视频',
117
- accept: '.mp4,.mov,.m4v,.wmv,.asf,.asx,.rm,.rmvb,.3gp,.avi,.mkv,'
118
- },
119
- {
120
- label: '音频',
121
- accept: '.mp3,.cda,.wav,.aif,.aiff,.ape,.ra,'
122
- },
123
- {
124
- label: '压缩包',
125
- accept: '.zip,.rar,.7z,'
126
- },
127
- {
128
- label: '文本/JSON',
129
- accept: '.json,.txt,'
130
- }
131
- ],
132
- // 表单校验类型
133
- formRuleType: [
134
- {
135
- label: '字符串', key: 'string'
136
- },
137
- {
138
- label: '数字', key: 'number'
139
- },
140
- {
141
- label: '布尔值', key: 'boolean'
142
- },
143
- {
144
- label: '正则表达式', key: 'regexp'
145
- },
146
- {
147
- label: '整数', key: 'integer'
148
- },
149
- {
150
- label: '小数', key: 'float'
151
- },
152
- {
153
- label: '数组或集合', key: 'array'
154
- },
155
- {
156
- label: '邮箱', key: 'email'
157
- }
158
- ],
159
- // 作用域插槽类型
160
- slotType: [
161
- {
162
- label: '不设置',
163
- key: 'default',
164
- match: ['input', 'select', 'checkbox', 'radio', 'addressSearch', 'citySelect']
165
- },
166
- {
167
- label: '文本溢出省略',
168
- key: 'ellipsis',
169
- match: ['input', 'citySelect', 'addressSearch', 'treeSelect']
170
- },
171
- {
172
- label: '多彩徽标',
173
- key: 'badge',
174
- match: ['select', 'radio', 'citySelect', 'addressSearch']
175
- },
176
- {
177
- label: '日期格式化',
178
- key: 'date',
179
- match: ['rangePicker', 'datePicker']
180
- },
181
- {
182
- label: '日期时间格式化',
183
- key: 'dateTime',
184
- match: ['rangePicker', 'datePicker']
185
- },
186
- {
187
- label: '操作列',
188
- key: 'action',
189
- match: [
190
- 'input'
191
- ]
192
- },
193
- ],
194
- // 查询方式
195
- queryType: [
196
- {
197
- label: '相等[=]',
198
- key: '=',
199
- match: ['input', 'select', 'radio', 'datePicker', 'monthPicker', 'yearPicker', 'addressSearch', 'citySelect']
200
- },
201
- {
202
- label: '不相等[!=]',
203
- key: '!=',
204
- match: ['input']
205
- },
206
- {
207
- label: '全模糊[like]',
208
- key: 'LIKE',
209
- match: ['input']
210
- },
211
- {
212
- label: '左模糊[left like]',
213
- key: 'LEFT_LIKE',
214
- match: ['input']
215
- },
216
- {
217
- label: '右模糊[right like]',
218
- key: 'RIGHT_LIKE',
219
- match: ['input', 'treeSelect']
220
- },
221
- {
222
- label: '大于[>]',
223
- key: '>',
224
- match: ['input', 'radio', 'monthPicker', 'yearPicker']
225
- },
226
- {
227
- label: '大于等于[>=]',
228
- key: '>=',
229
- match: ['input', 'radio', 'monthPicker', 'yearPicker']
230
- },
231
- {
232
- label: '小于[<]',
233
- key: '<',
234
- match: ['input', 'radio', 'monthPicker', 'yearPicker']
235
- },
236
- {
237
- label: '小于等于[<=]',
238
- key: '<=',
239
- match: ['input', 'radio', 'monthPicker', 'yearPicker']
240
- },
241
- {
242
- label: '包含[in]',
243
- key: 'IN',
244
- match: ['checkbox', 'treeSelect']
245
- },
246
- {
247
- label: '不包含[not in]',
248
- key: 'NOT_IN',
249
- match: []
250
- },
251
- {
252
- label: '之间[between]',
253
- key: 'BETWEEN',
254
- match: ['rangePicker']
255
- }
256
- ],
257
- // 新增/修改场景类型
258
- addOrEditType: [
259
- {
260
- label: '新增和修改',
261
- key: 'all',
262
- match: ['all']
263
- },
264
- {
265
- label: '仅支持新增',
266
- key: 'add',
267
- match: ['all']
268
- },
269
- {
270
- label: '仅支持修改',
271
- key: 'edit',
272
- match: ['all']
273
- },
274
- {
275
- label: '静默新增(不生成表单)',
276
- key: 'silenceAdd',
277
- match: ['input', 'rangePicker']
278
- },
279
- {
280
- label: '版本号',
281
- key: 'version',
282
- match: ['input']
283
- }
284
- ],
285
- // 字段用途类型
286
- silencePurposeType: [
287
- {
288
- label: '创建时间',
289
- key: 'createTime'
290
- },
291
- {
292
- label: '创建/操作人',
293
- key: 'operator'
294
- },
295
- {
296
- label: '组织机构ID',
297
- key: 'orgId'
298
- },
299
- {
300
- label: '自定义',
301
- key: 'customize'
302
- }
303
- ],
304
- // 数据源类型
305
- selectDataType: [
306
- {
307
- label: '字典键',
308
- key: 'key',
309
- noMatch: ['treeSelect']
310
- },
311
- {
312
- label: '固定集合',
313
- key: 'fixArray',
314
- noMatch: []
315
- },
316
- {
317
- label: '业务逻辑',
318
- key: 'logic',
319
- noMatch: []
320
- }
321
- ]
322
- }
@@ -1,160 +0,0 @@
1
- <template>
2
- <div>
3
- <create-query
4
- :visible.sync="visible"
5
- :to-edit-json="toEditJson"
6
- :saveExportJson="true"
7
- />
8
- <create-simple-form-query
9
- :visible.sync="createSimpleFormVisible"
10
- :to-edit-json="toEditSimpleFormJson"
11
- />
12
- <a-modal
13
- :visible="importJsonVisible"
14
- title="导入JSON配置"
15
- @cancel="importJsonVisible = false"
16
- @ok="importJsonHandleOk"
17
- >
18
- <a-textarea v-model="importEditJson" placeholder="输入现有的JSON配置"/>
19
- </a-modal>
20
- <a-modal
21
- :visible="liuliModalVisible"
22
- title="从琉璃中心获取配置"
23
- @cancel="liuliModalVisible = false"
24
- @ok="getLiuLiConfigHandleOk"
25
- >
26
- <a-form-model :model="form" :rules="rules" ref="liuliModel">
27
- <a-form-model-item label="命名空间" prop="namespaceName">
28
- <a-input v-model="form.namespaceName" :placeholder="'默认值:' + systemName"/>
29
- </a-form-model-item>
30
- <a-form-model-item label="配置名称" prop="configName">
31
- <a-input v-model="form.configName"/>
32
- </a-form-model-item>
33
- </a-form-model>
34
- </a-modal>
35
- <a-card title="查询配置管理">
36
- <a-space>
37
- <a-button type="primary" @click="showDrawer">创建新的配置
38
- </a-button>
39
- <a-button type="primary" @click="openImportView(1)">从JSON文本导入
40
- </a-button>
41
- <a-button type="primary" @click="openLiuLiConfigModalView(1)">从琉璃中心导入
42
- </a-button>
43
- </a-space>
44
- </a-card>
45
- <a-card title="简易表单配置管理" style="margin-top: 20px">
46
- <a-space>
47
- <a-button type="primary" @click="showSimpleFormQueryParamsDrawer">
48
- 创建新的配置
49
- </a-button>
50
- <a-button type="primary" @click="openImportView(2)">从JSON文本导入
51
- </a-button>
52
- <a-button type="primary" @click="openLiuLiConfigModalView(2)">从琉璃中心导入
53
- </a-button>
54
- </a-space>
55
- </a-card>
56
- <a-card>
57
- <x-step-view>
58
- </x-step-view>
59
- </a-card>
60
- </div>
61
- </template>
62
-
63
- <script>
64
- import XStepView from '@vue2-client/base-client/components/common/XStepView'
65
- import CreateQuery from '@vue2-client/base-client/components/common/CreateQuery'
66
- import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
67
- import { getNativeConfig } from '@vue2-client/services/api/common'
68
-
69
- export default {
70
- name: 'CreateQueryPage',
71
- components: {
72
- XStepView,
73
- CreateQuery,
74
- CreateSimpleFormQuery
75
- },
76
- data () {
77
- return {
78
- isLoaded: false,
79
- visible: false,
80
- createSimpleFormVisible: false,
81
- toEditJson: undefined,
82
- toEditSimpleFormJson: undefined,
83
- importJsonVisible: false,
84
- liuliModalVisible: false,
85
- type: undefined,
86
- importEditJson: '',
87
- form: {
88
- namespaceName: undefined,
89
- configName: undefined
90
- },
91
- rules: {
92
- configName: [{ required: true, message: '请输入配置名称', trigger: 'blur' }]
93
- }
94
- }
95
- },
96
- computed: {
97
- systemName () {
98
- return process.env.VUE_APP_SYSTEM_NAME
99
- }
100
- },
101
- methods: {
102
- showDrawer () {
103
- this.visible = true
104
- },
105
- showSimpleFormQueryParamsDrawer () {
106
- this.createSimpleFormVisible = true
107
- },
108
- openLiuLiConfigModalView (type) {
109
- this.type = type
110
- this.liuliModalVisible = true
111
- },
112
- openImportView (type) {
113
- this.type = type
114
- this.importJsonVisible = true
115
- },
116
- importJsonHandleOk () {
117
- try {
118
- if (this.type === 1) {
119
- this.toEditJson = JSON.parse(this.importEditJson)
120
- this.showDrawer()
121
- } else {
122
- this.toEditSimpleFormJson = JSON.parse(this.importEditJson)
123
- this.showSimpleFormQueryParamsDrawer()
124
- }
125
- } catch (e) {
126
- this.$message.warn('操作失败,输入配置不是JSON格式')
127
- } finally {
128
- this.importJsonVisible = false
129
- }
130
- },
131
- getLiuLiConfigHandleOk () {
132
- try {
133
- this.$refs.liuliModel.validate(valid => {
134
- if (valid) {
135
- getNativeConfig(this.form.configName, this.form.namespaceName).then(res => {
136
- console.warn(res)
137
- if (this.type === 1) {
138
- this.toEditJson = res
139
- this.showDrawer()
140
- } else {
141
- this.toEditSimpleFormJson = res
142
- this.showSimpleFormQueryParamsDrawer()
143
- }
144
- })
145
- } else {
146
- return false
147
- }
148
- })
149
- } catch (e) {
150
- this.$message.error('操作失败:' + e)
151
- throw e
152
- } finally {
153
- this.liuliModalVisible = false
154
- }
155
- },
156
- }
157
- }
158
- </script>
159
- <style lang="less" scoped>
160
- </style>