This commit is contained in:
quantulr
2023-11-29 17:22:34 +08:00
parent f0bf63e43f
commit 034b27fcbe
4 changed files with 160 additions and 148 deletions

View File

@ -1,21 +1,21 @@
<template> <template>
<el-badge <!-- <el-badge-->
v-if="!item.hidden" <!-- v-if="!item.hidden"-->
:hidden=" <!-- :hidden="-->
![ <!-- ![-->
`/approval/list`, <!-- `/approval/list`,-->
`/approval/dataList/approval`, <!-- `/approval/dataList/approval`,-->
`/auditing/achievement`, <!-- `/auditing/achievement`,-->
`/auditing/demand`, <!-- `/auditing/demand`,-->
`/auditing/serviceDemand`, <!-- `/auditing/serviceDemand`,-->
`/auditing/Enterpriseproducts`, <!-- `/auditing/Enterpriseproducts`,-->
`/approval/data-list/laboratory`, <!-- `/approval/data-list/laboratory`,-->
].includes(basePath) <!-- ].includes(basePath)-->
" <!-- "-->
:value="getCount(basePath)" <!-- :value="getCount(basePath)"-->
class="count-badge" <!-- class="count-badge"-->
> <!-- >-->
<div> <div v-if="!item.hidden">
<template <template
v-if=" v-if="
hasOneShowingChild(item.children, item) && hasOneShowingChild(item.children, item) &&
@ -44,7 +44,7 @@
:title="hasTitle(onlyOneChild.meta.title)" :title="hasTitle(onlyOneChild.meta.title)"
class="menu-title" class="menu-title"
>{{ >{{
["/auditing/serviceDemand"].includes(basePath) /* ["/auditing/serviceDemand"].includes(basePath)
? `${onlyOneChild.meta.title} (${userStore.serviceDemandTotal})` ? `${onlyOneChild.meta.title} (${userStore.serviceDemandTotal})`
: ["/auditing/achievement"].includes(basePath) : ["/auditing/achievement"].includes(basePath)
? `${onlyOneChild.meta.title} (${userStore.achievementTotal})` ? `${onlyOneChild.meta.title} (${userStore.achievementTotal})`
@ -52,7 +52,8 @@
? `${onlyOneChild.meta.title} (${userStore.technologyTotal})` ? `${onlyOneChild.meta.title} (${userStore.technologyTotal})`
: ["/auditing/Enterpriseproducts"].includes(basePath) : ["/auditing/Enterpriseproducts"].includes(basePath)
? `${onlyOneChild.meta.title} (${userStore.productTotal})` ? `${onlyOneChild.meta.title} (${userStore.productTotal})`
: onlyOneChild.meta.title :*/
onlyOneChild.meta.title
}}</span }}</span
></template ></template
> >
@ -83,7 +84,7 @@
/> />
</el-sub-menu> </el-sub-menu>
</div> </div>
</el-badge> <!-- </el-badge>-->
</template> </template>
<script setup> <script setup>

View File

@ -204,10 +204,11 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="最高学历:" prop="education"> <el-form-item label="最高学历:" prop="education">
<el-select v-model="modelValue.education" placeholder="请选择"> <el-select v-model="modelValue.education" placeholder="请选择">
<el-option label="博士" value="博士"></el-option> <!-- <el-option label="博士" value="博士"></el-option>
<el-option label="硕士" value="硕士"></el-option> <el-option label="硕士" value="硕士"></el-option>
<el-option label="本科" value="本科"></el-option> <el-option label="本科" value="本科"></el-option>
<el-option label="专科" value="专科"></el-option> <el-option label="专科" value="专科"></el-option>-->
<el-option v-for="option in educationOptions" :key="option.key" :value="option.key" :label="option.text"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -345,7 +346,7 @@ import InputBoxAdd from "@/views/components/InputBoxAdd";
// import { researchSelect } from "@/api/dataList/research"; // import { researchSelect } from "@/api/dataList/research";
// import { laboratorySelect } from "@/api/dataList/laboratory"; // import { laboratorySelect } from "@/api/dataList/laboratory";
import {tenantSelect} from "@/api/subPlatform/tenant"; import {tenantSelect} from "@/api/subPlatform/tenant";
import { enterpriseOptions } from "@/utils/parameter"; import {educationOptions, enterpriseOptions} from "@/utils/parameter";
import {reactive, ref, toRefs} from "vue"; import {reactive, ref, toRefs} from "vue";
import WangEditor from "@/components/WangEditor/index.vue"; import WangEditor from "@/components/WangEditor/index.vue";
// import SiteOptions from "@/views/components/SiteOptions"; // import SiteOptions from "@/views/components/SiteOptions";

View File

@ -75,7 +75,11 @@
<div>{{ row.industryStr }}</div> <div>{{ row.industryStr }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="学历" prop="education" /> <el-table-column align="center" label="学历" prop="education">
<template #default="{row}">
{{ educationOptions.find((el) => el.key === row.education)?.text ?? "无" }}
</template>
</el-table-column>
<!-- <el-table-column label="备注" align="center" prop="introduce" /> --> <!-- <el-table-column label="备注" align="center" prop="introduce" /> -->
<!-- <el-table-column label="站点" align="center"> <!-- <el-table-column label="站点" align="center">
<template #default="{ row }"> <template #default="{ row }">
@ -274,6 +278,7 @@ import { blobValidate } from "@/utils/ruoyi";
import { ElLoading, ElMessage, ElMessageBox } from "element-plus"; import { ElLoading, ElMessage, ElMessageBox } from "element-plus";
import dayjs from "dayjs"; import dayjs from "dayjs";
import request from "@/utils/request"; import request from "@/utils/request";
import {educationOptions} from "../../../utils/parameter";
const router = useRouter(); const router = useRouter();
// const siteList = ref([]); // const siteList = ref([]);

View File

@ -44,7 +44,11 @@
<div>{{ row.industryStr }}</div> <div>{{ row.industryStr }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="学历" prop="education" /> <el-table-column align="center" label="学历" prop="education">
<template #default="{row}">
{{ educationOptions.find((el) => el.key === row.education)?.text ?? "无" }}
</template>
</el-table-column>
<el-table-column align="center" label="个人备注" show-overflow-tooltip> <el-table-column align="center" label="个人备注" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<div v-html="row.introduce"></div> <div v-html="row.introduce"></div>
@ -86,6 +90,7 @@ import useUserStore from "@/store/modules/user";
import DictTag from "@/components/DictTag/index.vue"; import DictTag from "@/components/DictTag/index.vue";
import { auditStatusDict } from "@/constant/dict"; import { auditStatusDict } from "@/constant/dict";
import { reactive, ref, toRefs } from "vue"; import { reactive, ref, toRefs } from "vue";
import {educationOptions} from "../../../utils/parameter";
const router = useRouter(); const router = useRouter();
const data = reactive({ const data = reactive({