hl-core 0.0.9-beta.8 → 0.0.9-beta.9
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div v-if="$dataStore.panelAction === null" class="flex flex-col" id="panel-actions">
|
|
13
13
|
<slot></slot>
|
|
14
14
|
</div>
|
|
15
|
-
<base-panel-handler v-else />
|
|
15
|
+
<base-panel-handler v-else @task="$emit('task', $event)" />
|
|
16
16
|
<slot name="panel"></slot>
|
|
17
17
|
</v-navigation-drawer>
|
|
18
18
|
</template>
|
|
@@ -30,6 +30,7 @@ export default defineComponent({
|
|
|
30
30
|
default: 'panel',
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
+
emits: ['task'],
|
|
33
34
|
setup(props) {
|
|
34
35
|
const dataStore = useDataStore();
|
|
35
36
|
|
|
@@ -114,7 +114,8 @@
|
|
|
114
114
|
<script lang="ts">
|
|
115
115
|
import { DocumentItem } from '../../composables/classes';
|
|
116
116
|
export default defineComponent({
|
|
117
|
-
|
|
117
|
+
emits: ['task'],
|
|
118
|
+
setup(props, { emit }) {
|
|
118
119
|
const route = useRoute();
|
|
119
120
|
const dataStore = useDataStore();
|
|
120
121
|
const formStore = useFormStore();
|
|
@@ -198,7 +199,11 @@ export default defineComponent({
|
|
|
198
199
|
|
|
199
200
|
const handleTask = async () => {
|
|
200
201
|
loading.value = true;
|
|
201
|
-
|
|
202
|
+
if (dataStore.isAML || dataStore.isCheckContract || dataStore.isCheckContragent) {
|
|
203
|
+
emit('task', [dataStore.panelAction, route.params.taskId as string, actionCause.value]);
|
|
204
|
+
} else {
|
|
205
|
+
await dataStore.handleTask(dataStore.panelAction, route.params.taskId as string, actionCause.value);
|
|
206
|
+
}
|
|
202
207
|
loading.value = false;
|
|
203
208
|
};
|
|
204
209
|
|
package/locales/ru.json
CHANGED
|
@@ -323,6 +323,7 @@
|
|
|
323
323
|
"leftMy": "Осталось оформить лично",
|
|
324
324
|
"leftGroup": "Осталось оформить группой",
|
|
325
325
|
"leftAll": "Осталось оформить всего",
|
|
326
|
+
"leftAgents": "Осталось агентов {text} уровня",
|
|
326
327
|
"donePolicies": "Оформлено полисов",
|
|
327
328
|
"successStat": "Статистика успешных сделок",
|
|
328
329
|
"doneMy": "Оформлено лично",
|