vue2-client 1.19.11 → 1.19.13
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 +1 -1
- package/src/base-client/components/common/XAddNativeFormOA/XAddNativeFormOA.vue +1 -1
- package/src/base-client/components/common/XButtons/XButtons.vue +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +34 -90
- package/src/base-client/components/common/XReport/XReportDemo.vue +1 -1
- package/src/base-client/components/common/XReport/XReportDesign.vue +1 -1
- package/src/base-client/components/common/XReport/XReportJsonRender.vue +1 -1
- package/src/base-client/components/common/XReport/XReportTrGroup.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +1 -1
- package/src/pages/system/ticket/index.vue +1 -1
package/package.json
CHANGED
|
@@ -118,26 +118,7 @@
|
|
|
118
118
|
</a-select-option>
|
|
119
119
|
</template>
|
|
120
120
|
<template v-else-if="attr.keyName">
|
|
121
|
-
<template
|
|
122
|
-
v-if="
|
|
123
|
-
attr.keyName.indexOf('logic@') !== -1 ||
|
|
124
|
-
attr.keyName.indexOf('config@') !== -1 ||
|
|
125
|
-
attr.keyName.indexOf('search@') !== -1 ||
|
|
126
|
-
attr.keyName.indexOf('search@') !== -1
|
|
127
|
-
"
|
|
128
|
-
>
|
|
129
|
-
<a-select-option v-for="(item, index) in option" :key="index.value" :value="item.value + ''">
|
|
130
|
-
<template v-if="attr.keyName.indexOf('config@') !== -1 && item.status">
|
|
131
|
-
<!-- 徽标(badge) -->
|
|
132
|
-
<a-badge v-if="item.status !== 'gary'" :color="item.status" :text="item.label" />
|
|
133
|
-
<a-badge v-else color="#D9D9D9" :text="item.label" />
|
|
134
|
-
</template>
|
|
135
|
-
<template v-else>
|
|
136
|
-
{{ item.label }}
|
|
137
|
-
</template>
|
|
138
|
-
</a-select-option>
|
|
139
|
-
</template>
|
|
140
|
-
<template v-else-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
|
|
121
|
+
<template v-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
|
|
141
122
|
<a-select-option v-for="(item, index) in optionForFunc" :key="index.value" :value="item.value + ''">
|
|
142
123
|
<template>
|
|
143
124
|
{{ item.label }}
|
|
@@ -145,19 +126,20 @@
|
|
|
145
126
|
</a-select-option>
|
|
146
127
|
</template>
|
|
147
128
|
<template v-else>
|
|
148
|
-
<a-select-option
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
:
|
|
160
|
-
|
|
129
|
+
<a-select-option v-for="(item, index) in option" :key="index.value" :value="item.value + ''">
|
|
130
|
+
<template
|
|
131
|
+
v-if="
|
|
132
|
+
attr.keyName.indexOf('logic@') !== -1 ||
|
|
133
|
+
attr.keyName.indexOf('config@') !== -1 ||
|
|
134
|
+
attr.keyName.indexOf('search@') !== -1
|
|
135
|
+
">
|
|
136
|
+
{{ item.label }}
|
|
137
|
+
</template>
|
|
138
|
+
<template v-else-if="item.status">
|
|
139
|
+
<!-- 徽标(badge) -->
|
|
140
|
+
<a-badge v-if="item.status !== 'gary'" :color="item.status" :text="item.label" />
|
|
141
|
+
<a-badge v-else color="#D9D9D9" :text="item.label" />
|
|
142
|
+
</template>
|
|
161
143
|
</a-select-option>
|
|
162
144
|
</template>
|
|
163
145
|
</template>
|
|
@@ -240,19 +222,7 @@
|
|
|
240
222
|
</a-select-option>
|
|
241
223
|
</template>
|
|
242
224
|
<template v-else-if="attr.keyName">
|
|
243
|
-
<template
|
|
244
|
-
v-if="
|
|
245
|
-
attr.keyName.indexOf('logic@') !== -1 ||
|
|
246
|
-
attr.keyName.indexOf('config@') !== -1 ||
|
|
247
|
-
attr.keyName.indexOf('search@') !== -1 ||
|
|
248
|
-
attr.keyName.indexOf('search@') !== -1
|
|
249
|
-
"
|
|
250
|
-
>
|
|
251
|
-
<a-select-option v-for="(item, index) in option" :key="index" :value="item.value">
|
|
252
|
-
{{ item.label }}
|
|
253
|
-
</a-select-option>
|
|
254
|
-
</template>
|
|
255
|
-
<template v-else-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
|
|
225
|
+
<template v-if="attr.keyName.indexOf('async ') !== -1 || attr.keyName.indexOf('function ') !== -1">
|
|
256
226
|
<a-select-option v-for="(item, index) in optionForFunc" :key="index.value" :value="item.value + ''">
|
|
257
227
|
<template>
|
|
258
228
|
{{ item.label }}
|
|
@@ -260,11 +230,7 @@
|
|
|
260
230
|
</a-select-option>
|
|
261
231
|
</template>
|
|
262
232
|
<template v-else>
|
|
263
|
-
<a-select-option
|
|
264
|
-
v-for="item in dictMap[attr.keyName] || []"
|
|
265
|
-
:key="item.value"
|
|
266
|
-
:value="item.value + ''"
|
|
267
|
-
>
|
|
233
|
+
<a-select-option v-for="(item, index) in option" :key="index" :value="item.value">
|
|
268
234
|
{{ item.label }}
|
|
269
235
|
</a-select-option>
|
|
270
236
|
</template>
|
|
@@ -321,23 +287,9 @@
|
|
|
321
287
|
</a-radio>
|
|
322
288
|
</template>
|
|
323
289
|
<template v-else-if="attr.keyName">
|
|
324
|
-
<
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
attr.keyName.indexOf('config@') !== -1 ||
|
|
328
|
-
attr.keyName.indexOf('search@') !== -1 ||
|
|
329
|
-
attr.keyName.indexOf('search@') !== -1
|
|
330
|
-
"
|
|
331
|
-
>
|
|
332
|
-
<a-radio v-for="(item, index) in option" :key="index" :value="item.value">
|
|
333
|
-
{{ item.label }}
|
|
334
|
-
</a-radio>
|
|
335
|
-
</template>
|
|
336
|
-
<template v-else>
|
|
337
|
-
<a-radio v-for="(item, index) in dictMap[attr.keyName] || []" :key="index" :value="item.value">
|
|
338
|
-
{{ item.label }}
|
|
339
|
-
</a-radio>
|
|
340
|
-
</template>
|
|
290
|
+
<a-radio v-for="(item, index) in option" :key="index" :value="item.value">
|
|
291
|
+
{{ item.label }}
|
|
292
|
+
</a-radio>
|
|
341
293
|
</template>
|
|
342
294
|
</a-radio-group>
|
|
343
295
|
</a-form-model-item>
|
|
@@ -705,7 +657,7 @@ import PersonSetting from '@vue2-client/base-client/components/common/PersonSett
|
|
|
705
657
|
import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
|
|
706
658
|
import Upload from '@vue2-client/base-client/components/common/Upload'
|
|
707
659
|
import moment from 'moment'
|
|
708
|
-
import {
|
|
660
|
+
import { runLogic, getConfigByNameAsync } from '@vue2-client/services/api/common'
|
|
709
661
|
import * as util from '@vue2-client/utils/util'
|
|
710
662
|
import XTreeSelect from '@vue2-client/base-client/components/common/XForm/XTreeSelect'
|
|
711
663
|
import { searchToListOption, searchToOption } from '@vue2-client/services/v3Api'
|
|
@@ -764,8 +716,7 @@ export default {
|
|
|
764
716
|
rowChoosePopoverVisible: false,
|
|
765
717
|
// 行选择器CRUD固定查询值
|
|
766
718
|
rowChooseFixedQueryValue: undefined,
|
|
767
|
-
bindOther: {}
|
|
768
|
-
dictMap: {}
|
|
719
|
+
bindOther: {}
|
|
769
720
|
}
|
|
770
721
|
},
|
|
771
722
|
props: {
|
|
@@ -816,7 +767,7 @@ export default {
|
|
|
816
767
|
},
|
|
817
768
|
serviceName: {
|
|
818
769
|
type: String,
|
|
819
|
-
default:
|
|
770
|
+
default: process.env.VUE_APP_SYSTEM_NAME
|
|
820
771
|
},
|
|
821
772
|
// 调用logic获取数据源的追加参数
|
|
822
773
|
getDataParams: {
|
|
@@ -873,10 +824,6 @@ export default {
|
|
|
873
824
|
},
|
|
874
825
|
async created() {
|
|
875
826
|
this.init()
|
|
876
|
-
if (this.attr.keyName) {
|
|
877
|
-
const key = this.attr.keyName
|
|
878
|
-
this.dictMap[key] = await this.$appdata.getDictByKeyAsync(key)
|
|
879
|
-
}
|
|
880
827
|
if (
|
|
881
828
|
this.attr.keyName &&
|
|
882
829
|
(this.attr?.keyName?.toString().indexOf('async ') !== -1 ||
|
|
@@ -1366,7 +1313,7 @@ export default {
|
|
|
1366
1313
|
}
|
|
1367
1314
|
if (this.attr.keyName && typeof this.attr.keyName === 'string') {
|
|
1368
1315
|
if (this.attr.keyName.indexOf('logic@') !== -1) {
|
|
1369
|
-
this.getData({serviceName:process.env.VUE_APP_SYSTEM_NAME}, res => this.getDataCallback(res))
|
|
1316
|
+
this.getData({serviceName: process.env.VUE_APP_SYSTEM_NAME}, res => this.getDataCallback(res))
|
|
1370
1317
|
} else if (this.attr.keyName.indexOf('search@') !== -1) {
|
|
1371
1318
|
// `tool.getFullTree(this.getRights().where(row.getType()==$organization$))`
|
|
1372
1319
|
// 判断是否根据角色查询
|
|
@@ -1392,21 +1339,18 @@ export default {
|
|
|
1392
1339
|
// 其他资源通用逻辑
|
|
1393
1340
|
searchToOption(searchData, res => this.getDataCallback(res))
|
|
1394
1341
|
}
|
|
1395
|
-
} else if (this.attr.keyName.indexOf('config@') !== -1) {
|
|
1396
|
-
const configName = this.attr.keyName.substring(7)
|
|
1397
|
-
// 处理得到 “undefined” 字符串的问题
|
|
1398
|
-
if (configName && configName !== 'undefined') {
|
|
1399
|
-
getConfigByName(
|
|
1400
|
-
configName,
|
|
1401
|
-
this.serviceName,
|
|
1402
|
-
res => {
|
|
1403
|
-
this.getDataCallback(res.value)
|
|
1404
|
-
},
|
|
1405
|
-
this.env === 'dev'
|
|
1406
|
-
)
|
|
1407
|
-
}
|
|
1408
1342
|
} else if (this.attr.keyName.indexOf('async ') !== -1 || this.attr.keyName.indexOf('function ') !== -1) {
|
|
1409
1343
|
this.updateOptions()
|
|
1344
|
+
} else {
|
|
1345
|
+
let configName
|
|
1346
|
+
if (this.attr.keyName.indexOf('config@') !== -1) {
|
|
1347
|
+
configName = this.attr.keyName.substring(7)
|
|
1348
|
+
} else {
|
|
1349
|
+
configName = this.attr.keyName
|
|
1350
|
+
}
|
|
1351
|
+
if (configName && configName !== 'undefined') {
|
|
1352
|
+
this.$appdata.getDictByKey(configName, this.serviceName, res => this.getDataCallback(res), this.env === 'dev')
|
|
1353
|
+
}
|
|
1410
1354
|
}
|
|
1411
1355
|
} else if (this.attr.keys) {
|
|
1412
1356
|
// 对静态配置的keys也进行预处理
|