locale ru
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
<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)">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm">提交</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,8 @@
|
||||
ref="enterpriseFormRef"
|
||||
/>
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm">提交</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,10 +17,11 @@
|
||||
<script setup>
|
||||
import { insertEnterprise } from "@/api/identity/index";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { reactive, 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();
|
||||
const router = useRouter();
|
||||
const labelWidth = 140;
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
ref="expertFormRef"
|
||||
/>
|
||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||
<el-button @click="$router.go(-1)">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm">提交</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>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
size="small"
|
||||
type="primary"
|
||||
@click="backToHome"
|
||||
>返回
|
||||
>{{ t("admin.identity.entrance.back") }}
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="22">
|
||||
@ -18,7 +18,7 @@
|
||||
marginBottom: `10px`,
|
||||
}"
|
||||
show-icon
|
||||
title="温馨提示:如是企业请入驻企业后台,专家请入驻专家后台,并完善资料"
|
||||
:title="t('admin.identity.entrance.kindlyReminder')"
|
||||
type="warning"
|
||||
></el-alert>
|
||||
</el-col>
|
||||
@ -38,20 +38,34 @@
|
||||
src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
|
||||
style="height: 100px"
|
||||
></el-image>
|
||||
<h3>{{ `${item.title}入驻` }}</h3>
|
||||
<p v-if="item.status === '0'">审核中</p>
|
||||
<h3>
|
||||
{{ t("admin.identity.entrance.settleIn", { type: item.title }) }}
|
||||
</h3>
|
||||
<p v-if="item.status === '0'">
|
||||
{{
|
||||
// 审核中
|
||||
t("admin.identity.entrance.underReview")
|
||||
}}
|
||||
</p>
|
||||
<div v-else-if="item.status === '2'">
|
||||
<p class="text-danger">审核拒绝</p>
|
||||
<p class="text-danger">
|
||||
<!-- 审核拒绝-->
|
||||
{{ t("admin.identity.entrance.rejected") }}
|
||||
</p>
|
||||
<p
|
||||
class="text-navy"
|
||||
style="cursor: pointer"
|
||||
@click.stop="reason(item)"
|
||||
>
|
||||
查看拒绝原因
|
||||
<!-- 查看拒绝原因-->
|
||||
{{ t("admin.identity.entrance.viewReasonsForRejection") }}
|
||||
</p>
|
||||
</div>
|
||||
<div v-else-if="item.status === '4'">
|
||||
<el-link type="primary">申请</el-link>
|
||||
<el-link type="primary">
|
||||
<!-- 申请-->
|
||||
{{ t("admin.identity.entrance.apply") }}
|
||||
</el-link>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
@ -68,10 +82,15 @@
|
||||
src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
|
||||
style="height: 100px"
|
||||
></el-image>
|
||||
<h3>{{ `${item.title}后台` }}</h3>
|
||||
<h3>
|
||||
{{ t("admin.identity.entrance.backstage", { type: item.title }) }}
|
||||
</h3>
|
||||
<p v-if="item.status === '1'">
|
||||
<!-- <p> -->
|
||||
<el-link type="primary" @click="handlePage(item)">进入</el-link>
|
||||
<el-link type="primary" @click="handlePage(item)">
|
||||
<!-- 进入-->
|
||||
{{ t("admin.identity.entrance.enter") }}
|
||||
</el-link>
|
||||
</p>
|
||||
</el-card>
|
||||
</el-col>
|
||||
@ -87,25 +106,25 @@ import usePermissionStore from "@/store/modules/permission";
|
||||
import useUserStore from "@/store/modules/user";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import { ArrowLeftBold } from "@element-plus/icons-vue";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { computed, onMounted, reactive, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const permissionStore = usePermissionStore();
|
||||
const { t } = useI18n();
|
||||
const userStore = useUserStore();
|
||||
const identityList = ref([]);
|
||||
const identityDict = {
|
||||
1: "企业",
|
||||
2: "专家",
|
||||
3: "实验室",
|
||||
4: "研究机构",
|
||||
5: "科技经纪人",
|
||||
const identityDict = reactive({
|
||||
1: computed(() => t("admin.identity.entrance.company")),
|
||||
2: computed(() => t("admin.identity.entrance.expert")),
|
||||
3: computed(() => t("admin.identity.entrance.lab")),
|
||||
4: computed(() => t("admin.identity.entrance.research")),
|
||||
5: computed(() => t("admin.identity.entrance.broker")),
|
||||
// 6: "企业后台",
|
||||
// 7: "专家后台",
|
||||
// 8: "研究机构后台",
|
||||
// 9: "实验室后台",
|
||||
// 10: "科技经纪人后台",
|
||||
};
|
||||
});
|
||||
onMounted(() => {
|
||||
identity().then((res) => {
|
||||
identityList.value = res.data
|
||||
@ -137,7 +156,8 @@ const backToHome = () => {
|
||||
// item.status -1>未入驻 0>审核中 1>通过 2拒绝
|
||||
function handleStatus(item) {
|
||||
// console.log(item);
|
||||
if (noClicking()) return ElMessageBox.alert("一个账号只能申请一个身份");
|
||||
const oneAccountAlert = t("admin.identity.entrance.oneAccount");
|
||||
if (noClicking()) return ElMessageBox.alert(oneAccountAlert);
|
||||
if (item.status === "4" || item.status === "2") {
|
||||
if (item.id === 1) {
|
||||
// 企业
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
<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)">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm">提交</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,8 @@
|
||||
<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')">取消</el-button>
|
||||
<el-button type="primary" @click="submitForm">提交</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