free-fe-core-modules 0.1.15 → 0.1.17
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
|
|
|
@@ -150,7 +150,9 @@ export default defineComponent({
|
|
|
150
150
|
fieldsClass: { type: String, default: '' },
|
|
151
151
|
dialogClass: { type: String, default: '' },
|
|
152
152
|
|
|
153
|
-
remove: { type: Function, default: () => {}}
|
|
153
|
+
remove: { type: Function, default: () => {}},
|
|
154
|
+
|
|
155
|
+
noRejectOnCancel: { type: Boolean, default: false },
|
|
154
156
|
},
|
|
155
157
|
components: {
|
|
156
158
|
FreeField,
|
|
@@ -242,12 +244,16 @@ export default defineComponent({
|
|
|
242
244
|
}
|
|
243
245
|
|
|
244
246
|
if (reject.value) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
if (!props.noRejectOnCancel) {
|
|
248
|
+
reject.value('cancel');
|
|
249
|
+
} else {
|
|
250
|
+
emit('ok');
|
|
249
251
|
}
|
|
250
252
|
}
|
|
253
|
+
|
|
254
|
+
if (typeof props.remove === 'function'){
|
|
255
|
+
props.remove();
|
|
256
|
+
}
|
|
251
257
|
};
|
|
252
258
|
|
|
253
259
|
const btn_ok = () => {
|
|
@@ -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);
|