|
@@ -2,7 +2,9 @@
|
|
<RightFillPano>
|
|
<RightFillPano>
|
|
<template #header>
|
|
<template #header>
|
|
<div class="btns header-btns">
|
|
<div class="btns header-btns">
|
|
- <ui-button class="start" @click="start" type="primary">{{ $t('record.start') }}</ui-button>
|
|
|
|
|
|
+ <ui-button class="start" @click="start" type="primary">{{
|
|
|
|
+ $t("record.start")
|
|
|
|
+ }}</ui-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -58,7 +60,7 @@ initialPaths();
|
|
const start = () => records.value.push(createRecord());
|
|
const start = () => records.value.push(createRecord());
|
|
const deleteRecord = async (record: Record) => {
|
|
const deleteRecord = async (record: Record) => {
|
|
const isTemp = getRecordFragmentBlobs(record).length === 0 && isTemploraryID(record.id);
|
|
const isTemp = getRecordFragmentBlobs(record).length === 0 && isTemploraryID(record.id);
|
|
- if (isTemp || (await Dialog.confirm($t('record.delConfirm')))) {
|
|
|
|
|
|
+ if (isTemp || (await Dialog.confirm($t("record.delConfirm")))) {
|
|
const index = records.value.indexOf(record);
|
|
const index = records.value.indexOf(record);
|
|
if (~index) {
|
|
if (~index) {
|
|
records.value.splice(index, 1);
|
|
records.value.splice(index, 1);
|
|
@@ -72,8 +74,8 @@ const getSignRecord = (record: Record): RecordProcess => ({
|
|
});
|
|
});
|
|
|
|
|
|
const setOptions = [
|
|
const setOptions = [
|
|
- { value: "tagging", label: ui18n.t('record.tag') },
|
|
|
|
- { value: "measure", label: ui18n.t('measure.name') },
|
|
|
|
|
|
+ { value: "tagging", label: ui18n.t("record.tag") },
|
|
|
|
+ { value: "measure", label: ui18n.t("measure.name") },
|
|
] as const;
|
|
] as const;
|
|
|
|
|
|
type SetKey = typeof setOptions[number]["value"];
|
|
type SetKey = typeof setOptions[number]["value"];
|