vue2-client 1.8.81 → 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.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +36 -22
- package/src/base-client/components/index.js +0 -6
- package/src/router/async/router.map.js +0 -2
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +0 -669
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +0 -1014
- package/src/base-client/components/common/CreateQuery/index.js +0 -3
- package/src/base-client/components/common/CreateQuery/index.md +0 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +0 -452
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +0 -511
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +0 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +0 -42
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +0 -149
- package/src/base-client/components/common/FormGroupEdit/index.js +0 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +0 -43
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +0 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +0 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +0 -43
- package/src/config/CreateQueryConfig.js +0 -322
- package/src/pages/CreateQueryPage.vue +0 -160
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -35,17 +35,25 @@
|
|
|
35
35
|
<template v-if="attr.keys">
|
|
36
36
|
<a-select-option
|
|
37
37
|
v-for="(item,index) in attr.keys"
|
|
38
|
-
:key="index"
|
|
38
|
+
:key="index.value"
|
|
39
39
|
:value="item.value">
|
|
40
40
|
{{ item.label }}
|
|
41
41
|
</a-select-option>
|
|
42
42
|
</template>
|
|
43
43
|
<template v-else>
|
|
44
|
-
<template v-if="attr.keyName.indexOf('logic@') !== -1">
|
|
44
|
+
<template v-if="attr.keyName.indexOf('logic@') !== -1 || attr.keyName.indexOf('config@') !== -1">
|
|
45
45
|
<a-select-option
|
|
46
46
|
v-for="(item,index) in option"
|
|
47
|
-
:key="index"
|
|
48
|
-
:value="item.value">
|
|
47
|
+
:key="index.value"
|
|
48
|
+
:value="item.value">
|
|
49
|
+
<template v-if="attr.keyName.indexOf('config@') !== -1 && item.status">
|
|
50
|
+
<!-- 徽标(badge) -->
|
|
51
|
+
<a-badge v-if="item.status !== 'gary'" :color="item.status" :text="item.label"/>
|
|
52
|
+
<a-badge v-else color="#D9D9D9" :text="item.label"/>
|
|
53
|
+
</template>
|
|
54
|
+
<template v-else>
|
|
55
|
+
{{ item.label }}
|
|
56
|
+
</template>
|
|
49
57
|
</a-select-option>
|
|
50
58
|
</template>
|
|
51
59
|
<template v-else>
|
|
@@ -111,7 +119,7 @@
|
|
|
111
119
|
</a-select-option>
|
|
112
120
|
</template>
|
|
113
121
|
<template v-else>
|
|
114
|
-
<template v-if="attr.keyName.indexOf('logic@') !== -1">
|
|
122
|
+
<template v-if="attr.keyName.indexOf('logic@') !== -1 || attr.keyName.indexOf('config@') !== -1">
|
|
115
123
|
<a-select-option
|
|
116
124
|
v-for="(item,index) in option"
|
|
117
125
|
:key="index"
|
|
@@ -163,7 +171,7 @@
|
|
|
163
171
|
</a-radio>
|
|
164
172
|
</template>
|
|
165
173
|
<template v-else>
|
|
166
|
-
<template v-if="attr.keyName.indexOf('logic@') !== -1">
|
|
174
|
+
<template v-if="attr.keyName.indexOf('logic@') !== -1 || attr.keyName.indexOf('config@') !== -1">
|
|
167
175
|
<a-radio v-for="(item,index) in option" :key="index" :value="item.value">
|
|
168
176
|
{{ item.label }}
|
|
169
177
|
</a-radio>
|
|
@@ -313,7 +321,7 @@ import AddressSearchCombobox from '@vue2-client/base-client/components/common/Ad
|
|
|
313
321
|
import Upload from '@vue2-client/base-client/components/common/Upload'
|
|
314
322
|
import moment from 'moment'
|
|
315
323
|
import XTreeSelect from '@vue2-client/base-client/components/common/XForm/XTreeSelect'
|
|
316
|
-
import { runLogic } from '@vue2-client/services/api/common'
|
|
324
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
317
325
|
|
|
318
326
|
export default {
|
|
319
327
|
name: 'XFormItem',
|
|
@@ -428,26 +436,32 @@ export default {
|
|
|
428
436
|
}
|
|
429
437
|
}
|
|
430
438
|
if (this.attr.keyName && this.attr.keyName.indexOf('logic@') !== -1) {
|
|
431
|
-
this.getData({}, res =>
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
form: this.form,
|
|
437
|
-
queryType: this.attr.queryType,
|
|
438
|
-
name: this.attr.name,
|
|
439
|
-
model: this.attr.model,
|
|
440
|
-
mode: this.mode,
|
|
441
|
-
disabled: this.disabled
|
|
442
|
-
})
|
|
443
|
-
} else if (this.attr.type === 'radio') {
|
|
444
|
-
this.initRadioValue()
|
|
445
|
-
}
|
|
439
|
+
this.getData({}, res => this.getDataCallback(res))
|
|
440
|
+
} else if (this.attr.keyName && this.attr.keyName.indexOf('config@') !== -1) {
|
|
441
|
+
const configName = this.attr.keyName.substring(7)
|
|
442
|
+
getConfigByName(configName, this.serviceName, res => {
|
|
443
|
+
this.getDataCallback(res.value)
|
|
446
444
|
})
|
|
447
445
|
} else {
|
|
448
446
|
this.initRadioValue()
|
|
449
447
|
}
|
|
450
448
|
},
|
|
449
|
+
getDataCallback (res) {
|
|
450
|
+
this.option = res
|
|
451
|
+
if (this.attr.type === 'treeSelect') {
|
|
452
|
+
this.$refs.xTreeSelect.init({
|
|
453
|
+
option: this.option,
|
|
454
|
+
form: this.form,
|
|
455
|
+
queryType: this.attr.queryType,
|
|
456
|
+
name: this.attr.name,
|
|
457
|
+
model: this.attr.model,
|
|
458
|
+
mode: this.mode,
|
|
459
|
+
disabled: this.disabled
|
|
460
|
+
})
|
|
461
|
+
} else if (this.attr.type === 'radio') {
|
|
462
|
+
this.initRadioValue()
|
|
463
|
+
}
|
|
464
|
+
},
|
|
451
465
|
initRadioValue () {
|
|
452
466
|
const model = this.attr.model
|
|
453
467
|
if (this.mode === '新增/修改' && this.attr.type === 'radio' && !this.form[model]) {
|
|
@@ -10,12 +10,8 @@ import XCard from './common/XCard'
|
|
|
10
10
|
import XBadge from './common/XBadge'
|
|
11
11
|
import Upload from './common/Upload'
|
|
12
12
|
import JSONToTree from './common/JSONToTree'
|
|
13
|
-
import FormGroupEdit from './common/FormGroupEdit'
|
|
14
|
-
import FormGroupQuery from './common/FormGroupQuery'
|
|
15
13
|
import AddressSearchCombobox from './common/AddressSearchCombobox'
|
|
16
14
|
import AmapMarker from './common/AmapMarker'
|
|
17
|
-
// import CreateQuery from './common/CreateQuery'
|
|
18
|
-
// import CreateSimpleFormQuery from './common/CreateSimpleFormQuery'
|
|
19
15
|
import PersonSetting from './common/PersonSetting'
|
|
20
16
|
import XFormTable from './common/XFormTable'
|
|
21
17
|
import XStepView from './common/XStepView'
|
|
@@ -34,8 +30,6 @@ export default {
|
|
|
34
30
|
XBadge,
|
|
35
31
|
Upload,
|
|
36
32
|
JSONToTree,
|
|
37
|
-
FormGroupEdit,
|
|
38
|
-
FormGroupQuery,
|
|
39
33
|
AddressSearchCombobox,
|
|
40
34
|
AmapMarker,
|
|
41
35
|
// CreateQuery,
|
|
@@ -33,8 +33,6 @@ routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
|
33
33
|
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
34
34
|
// 系统设置
|
|
35
35
|
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
36
|
-
// 查询配置生成工具
|
|
37
|
-
routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage')
|
|
38
36
|
// AMIS示例页面
|
|
39
37
|
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
|
40
38
|
// 数据检索
|