@tekkare/auriga 0.1.35 → 0.1.36
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/dist/module.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</p>
|
|
61
61
|
<div class="scope_criteria">
|
|
62
62
|
<arg-tags
|
|
63
|
-
v-for="(criteria, index) in
|
|
63
|
+
v-for="(criteria, index) in getAllCriteria"
|
|
64
64
|
:key="index"
|
|
65
65
|
set-style="gray"
|
|
66
66
|
>{{ criteria }}</arg-tags
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</template>
|
|
101
101
|
|
|
102
102
|
<script>
|
|
103
|
-
import { ref, defineComponent, watch } from "vue";
|
|
103
|
+
import { ref, defineComponent, watch, computed } from "vue";
|
|
104
104
|
export default defineComponent({
|
|
105
105
|
name: "argScopeModal",
|
|
106
106
|
props: {
|
|
@@ -131,6 +131,16 @@ export default defineComponent({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
|
+
const getAllCriteria = computed(() => {
|
|
135
|
+
const allCriteria = [];
|
|
136
|
+
const scopeCriteria = JSON.parse(props.scopeCriteria.criteria);
|
|
137
|
+
for (let i = 0; i < scopeCriteria.length; i++) {
|
|
138
|
+
for (let j = 0; j < scopeCriteria[i].values.length; j++) {
|
|
139
|
+
allCriteria.push(scopeCriteria[i].values[j]);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return allCriteria;
|
|
143
|
+
});
|
|
134
144
|
function closeSaveScope() {
|
|
135
145
|
emit("onClose");
|
|
136
146
|
}
|
|
@@ -149,7 +159,8 @@ export default defineComponent({
|
|
|
149
159
|
scopeName,
|
|
150
160
|
scopeDescr,
|
|
151
161
|
nameFilled,
|
|
152
|
-
saveFail
|
|
162
|
+
saveFail,
|
|
163
|
+
getAllCriteria
|
|
153
164
|
};
|
|
154
165
|
}
|
|
155
166
|
});
|
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
scopeDescr: import("vue").Ref<string>;
|
|
16
16
|
nameFilled: import("vue").Ref<boolean>;
|
|
17
17
|
saveFail: import("vue").Ref<boolean>;
|
|
18
|
+
getAllCriteria: import("vue").ComputedRef<never[]>;
|
|
18
19
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClose" | "onSave")[], "onClose" | "onSave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
20
|
scopeCriteria: {
|
|
20
21
|
type: ArrayConstructor;
|