update i18n
This commit is contained in:
@ -3,8 +3,12 @@
|
||||
<el-card shadow="always" style="width: 55%; margin: 0 auto">
|
||||
<agent-form ref="agentFormRef" v-model="form" is-add />
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">{{ t("admin.common.cancel") }}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{ t("admin.common.submit") }}</el-button>
|
||||
<el-button @click="$router.go(-1)">{{
|
||||
t("admin.common.cancel")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
@ -8,8 +8,12 @@
|
||||
ref="enterpriseFormRef"
|
||||
/>
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">{{ t("admin.common.cancel") }}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{ t("admin.common.submit") }}</el-button>
|
||||
<el-button @click="$router.go(-1)">{{
|
||||
t("admin.common.cancel")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
@ -17,11 +21,11 @@
|
||||
<script setup>
|
||||
import { insertEnterprise } from "@/api/identity/index";
|
||||
import { ElMessage } from "element-plus";
|
||||
import {reactive, ref, toRefs} from "vue";
|
||||
import { reactive, ref, toRefs } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import EnterpriseForm from "../components/EnterpriseForm/index.vue";
|
||||
import {useI18n} from "vue-i18n";
|
||||
const {t} = useI18n();
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
const labelWidth = 140;
|
||||
|
||||
|
||||
@ -8,8 +8,12 @@
|
||||
ref="expertFormRef"
|
||||
/>
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">{{ t("admin.common.cancel") }}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{ t("admin.common.submit") }}</el-button>
|
||||
<el-button @click="$router.go(-1)">{{
|
||||
t("admin.common.cancel")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
@ -3,8 +3,12 @@
|
||||
<el-card shadow="always" style="width: 55%; margin: 0 auto">
|
||||
<laboratory-form ref="laboratoryFormRef" v-model="form" is-add />
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">{{ t("admin.common.cancel") }}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{ t("admin.common.submit") }}</el-button>
|
||||
<el-button @click="$router.go(-1)">{{
|
||||
t("admin.common.cancel")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
@ -15,7 +19,9 @@ import LaboratoryForm from "@/views/components/LaboratoryForm";
|
||||
import { reactive, ref, toRefs } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const { t } = useI18n();
|
||||
const props = defineProps({
|
||||
labelWidth: {
|
||||
type: Number,
|
||||
|
||||
@ -3,8 +3,12 @@
|
||||
<el-card shadow="always" style="width: 55%; margin: 0 auto">
|
||||
<research-form ref="researchFormRef" v-model="form" is-add />
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="router.push('/identity/index')">{{ t("admin.common.cancel") }}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{ t("admin.common.submit") }}</el-button>
|
||||
<el-button @click="router.push('/identity/index')">{{
|
||||
t("admin.common.cancel")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="submitForm">{{
|
||||
t("admin.common.submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user