free-fe-core-modules 0.1.14 → 0.1.16
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.
|
@@ -143,9 +143,9 @@ export default defineComponent({
|
|
|
143
143
|
item.disable = false;
|
|
144
144
|
if (item.event) {
|
|
145
145
|
if (item.event_params) {
|
|
146
|
-
this.Bus
|
|
146
|
+
this.Bus?.emit(item.event, item.event_params);
|
|
147
147
|
} else {
|
|
148
|
-
this.Bus
|
|
148
|
+
this.Bus?.emit(item.event);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -27,11 +27,19 @@
|
|
|
27
27
|
|
|
28
28
|
<q-space v-if="!hasKw || dense"></q-space>
|
|
29
29
|
<div class="q-ma-xs query-btns" v-if="!hasKw || dense">
|
|
30
|
+
<q-btn
|
|
31
|
+
v-if="Field.canExport"
|
|
32
|
+
class="export-btn"
|
|
33
|
+
icon="fa fa-list"
|
|
34
|
+
label="导出"
|
|
35
|
+
@click="$emit('export')"
|
|
36
|
+
/>
|
|
30
37
|
<q-btn class="clear-btn" icon="refresh" label="清空" @click="clear"></q-btn>
|
|
31
38
|
<q-btn class="query-btn q-ma-xs" icon="search" label="查询" @click="search"></q-btn>
|
|
32
39
|
</div>
|
|
33
40
|
</div>
|
|
34
|
-
<div class="row col items-center full-width"
|
|
41
|
+
<div class="row col items-center full-width"
|
|
42
|
+
v-if="hasKw && !dense">
|
|
35
43
|
<free-field
|
|
36
44
|
:Field="{
|
|
37
45
|
Type: 'String',
|
|
@@ -88,7 +96,7 @@ export default defineComponent({
|
|
|
88
96
|
const kwFields = ref([]);
|
|
89
97
|
|
|
90
98
|
watchEffect(() => {
|
|
91
|
-
query.value = props.Field.queryData;
|
|
99
|
+
query.value = props.Field.queryData || {};
|
|
92
100
|
})
|
|
93
101
|
|
|
94
102
|
watchEffect(() => {
|
|
@@ -100,7 +108,7 @@ export default defineComponent({
|
|
|
100
108
|
) {
|
|
101
109
|
if (!fd.Info || !fd.Info.Separate) {
|
|
102
110
|
hasKw.value = true;
|
|
103
|
-
if (fd.Label) {
|
|
111
|
+
if (fd.Label && !kwFields.value.includes(fd.Label)) {
|
|
104
112
|
kwFields.value.push(fd.Label);
|
|
105
113
|
}
|
|
106
114
|
}
|
|
@@ -146,7 +154,6 @@ export default defineComponent({
|
|
|
146
154
|
return fList;
|
|
147
155
|
});
|
|
148
156
|
|
|
149
|
-
|
|
150
157
|
const search = () => {
|
|
151
158
|
if (queryChanged.value) {
|
|
152
159
|
emit('search', query.value);
|
|
@@ -371,7 +371,7 @@ export default defineComponent({
|
|
|
371
371
|
},
|
|
372
372
|
}).then((res) => {
|
|
373
373
|
if (res && res.data && res.data.id) {
|
|
374
|
-
resolve(`${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}${
|
|
374
|
+
resolve(`${window.location.protocol}//${window.location.hostname}${window.location.port ? `:${window.location.port}` : ''}${vm.ctx.config.imageUrlBase}${res.data.id}${props.Field.Options?.UploadedImageUrlArgs || ''}`);
|
|
375
375
|
} else {
|
|
376
376
|
reject({
|
|
377
377
|
message: '上传失败',
|