Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase
| | |
| | | }).then((resp) => { |
| | | if (resp.length > 0) { |
| | | const data = resp[0]; |
| | | console.log(data,'datas'); |
| | | const datas = handleQueryResourceListData({ |
| | | datas: data.datas, |
| | | fields, |
| | |
| | | for (let fieldKey in fields) { |
| | | if (item.datas[fieldKey]) { |
| | | const values = JSON.parse(item.datas[fieldKey]); |
| | | |
| | | |
| | | |
| | | if (values.length > 0) { |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | _fields[fieldKey] = values[0].Value; |
| | | } else if (values[0].Data) { |
| | | _fields[fieldKey] = values[0].Data.Value; |
| | | //特殊处理动态行字段 |
| | | if (fieldKey == "eventPictures") { |
| | | _fields[fieldKey] = values.map(citem => citem.Value); |
| | | }else{ |
| | | // 用字段名处理返回的字段值 |
| | | if (values[0].Value) { |
| | | _fields[fieldKey] = values[0].Value; |
| | | } else if (values[0].Data) { |
| | | _fields[fieldKey] = values[0].Data.Value; |
| | | } |
| | | item.datas[fieldKey] = values[0]; |
| | | } |
| | | item.datas[fieldKey] = values[0]; |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | " :model="from" class="row demo-form-inline col-xs-12"> |
| | | <el-row :gutter="10"> |
| | | <el-form-item style="width: 33%" v-for="(item, i) in from.from" :key="i" :label="item.label"> |
| | | <el-input v-if="item.type === 'input'" v-model="item.value" :placeholder="item.label"></el-input> |
| | | <el-input v-if="item.type === 'input'" v-model="item.value" :placeholder="item.label" :type="item.name == 'year' ? 'number' : 'text'"></el-input> |
| | | </el-form-item> |
| | | <!-- 其他表单项省略 --> |
| | | <!-- <el-form-item style="display:block; "> --> |
| | |
| | | </ul> |
| | | <!-- 高级搜索 --> |
| | | <div v-if="isDisplay" class="page-search"> |
| | | <MyForm class="myfrom" @submit=" |
| | | (data) => { |
| | | CurrentPage = 1; |
| | | onSubmit(data); |
| | | } |
| | | " @reset="resetForm" :from="from" /> |
| | | <MyForm |
| | | class="myfrom" |
| | | @submit=" |
| | | (data) => { |
| | | CurrentPage = 1; |
| | | onSubmit(data); |
| | | } |
| | | " |
| | | @reset="resetForm" |
| | | :from="from" |
| | | /> |
| | | </div> |
| | | <!-- 搜索结果 --> |
| | | <div class="page-content"> |
| | |
| | | <li class="left-title"> |
| | | <span>{{ category.title }}</span> |
| | | <p @click="category.isDisplay = !category.isDisplay"> |
| | | <img :src="[category.isDisplay ? topIcon : bottomIcon]" alt="" /> |
| | | <img |
| | | :src="[category.isDisplay ? topIcon : bottomIcon]" |
| | | alt="" |
| | | /> |
| | | </p> |
| | | </li> |
| | | <li class="left-main" v-if="category.isDisplay"> |
| | | <div class="category-main" v-for="(item, index) in category.list" :key="index"> |
| | | <el-checkbox class="el-checkbox" v-model="item.checked" :title="item.name" |
| | | @change="categoryChange(item)" style="display: inline-block; vertical-align: middle">{{ item.name |
| | | }}</el-checkbox> |
| | | <span class="" style="display: inline-block; vertical-align: middle">{{ item.num }}</span> |
| | | <div |
| | | class="category-main" |
| | | v-for="(item, index) in category.list" |
| | | :key="index" |
| | | > |
| | | <el-checkbox |
| | | class="el-checkbox" |
| | | v-model="item.checked" |
| | | :title="item.name" |
| | | @change="categoryChange(item)" |
| | | style="display: inline-block; vertical-align: middle" |
| | | >{{ item.name }}</el-checkbox |
| | | > |
| | | <span |
| | | class="" |
| | | style="display: inline-block; vertical-align: middle" |
| | | >{{ item.num }}</span |
| | | > |
| | | </div> |
| | | </li> |
| | | </ul> |
| | |
| | | <span>{{ annual.title }}</span> |
| | | <span> |
| | | 时间 |
| | | <img class="sort-Icon" :src="[isDisplay ? sortTop : sortBottom]" alt="" /> |
| | | <img |
| | | class="sort-Icon" |
| | | :src="[isDisplay ? sortTop : sortBottom]" |
| | | alt="" |
| | | /> |
| | | </span> |
| | | <span>文献量 |
| | | <img class="sort-Icon" :src="[isDisplay ? sortBottom : sortTop]" alt="" /> |
| | | <span |
| | | >文献量 |
| | | <img |
| | | class="sort-Icon" |
| | | :src="[isDisplay ? sortBottom : sortTop]" |
| | | alt="" |
| | | /> |
| | | </span> |
| | | </div> |
| | | <p @click="annual.isDisplay = !annual.isDisplay"> |
| | | <img :src="[annual.isDisplay ? topIcon : bottomIcon]" alt="" /> |
| | | <img |
| | | :src="[annual.isDisplay ? topIcon : bottomIcon]" |
| | | alt="" |
| | | /> |
| | | </p> |
| | | </li> |
| | | <li class="left-main" v-if="annual.isDisplay"> |
| | | <div class="annual-main" :style="{ |
| | | display: index + 1 > professionIndex ? 'none' : '', |
| | | }" v-for="(item, index) in annual.list" :key="index"> |
| | | <el-checkbox class="el-checkbox" v-model="item.checked" :title="item.years">{{ item.years |
| | | }}</el-checkbox> |
| | | <div |
| | | class="annual-main" |
| | | :style="{ |
| | | display: index + 1 > professionIndex ? 'none' : '', |
| | | }" |
| | | v-for="(item, index) in annual.list" |
| | | :key="index" |
| | | > |
| | | <el-checkbox |
| | | class="el-checkbox" |
| | | v-model="item.checked" |
| | | :title="item.years" |
| | | >{{ item.years }}</el-checkbox |
| | | > |
| | | <span class="">{{ item.num }}</span> |
| | | </div> |
| | | <p class="annual-footer" v-if="annual.list && annual.list.length > 5" @click="shrinkClick('a', '年度')"> |
| | | <p |
| | | class="annual-footer" |
| | | v-if="annual.list && annual.list.length > 5" |
| | | @click="shrinkClick('a', '年度')" |
| | | > |
| | | {{ activeBox !== "a" ? "更多 ∨" : "收起 ∧" }} |
| | | </p> |
| | | </li> |
| | |
| | | <span>{{ sources.title }}</span> |
| | | <span> |
| | | 文献量 |
| | | <img class="sort-Icon" :src="[isDisplay ? sortBottom : sortTop]" alt="" /> |
| | | <img |
| | | class="sort-Icon" |
| | | :src="[isDisplay ? sortBottom : sortTop]" |
| | | alt="" |
| | | /> |
| | | </span> |
| | | </div> |
| | | <p @click="sources.isDisplay = !sources.isDisplay"> |
| | | <img :src="[sources.isDisplay ? topIcon : bottomIcon]" alt="" /> |
| | | <img |
| | | :src="[sources.isDisplay ? topIcon : bottomIcon]" |
| | | alt="" |
| | | /> |
| | | </p> |
| | | </li> |
| | | <li class="left-main" v-if="sources.isDisplay"> |
| | | <div class="sources-main" v-for="(item, index) in sources.list" :key="index" :style="{ |
| | | display: index + 1 > dynastyIndex ? 'none' : '', |
| | | }"> |
| | | <el-checkbox class="el-checkbox" :title="item.name" v-model="item.checked">{{ item.name |
| | | }}</el-checkbox> |
| | | <div |
| | | class="sources-main" |
| | | v-for="(item, index) in sources.list" |
| | | :key="index" |
| | | :style="{ |
| | | display: index + 1 > dynastyIndex ? 'none' : '', |
| | | }" |
| | | > |
| | | <el-checkbox |
| | | class="el-checkbox" |
| | | :title="item.name" |
| | | v-model="item.checked" |
| | | >{{ item.name }}</el-checkbox |
| | | > |
| | | <span class="">{{ item.num }}</span> |
| | | </div> |
| | | <p class="sources-footer" v-if="sources.list && sources.list.length > 5" |
| | | @click="shrinkClick('b', '文献来源')"> |
| | | <p |
| | | class="sources-footer" |
| | | v-if="sources.list && sources.list.length > 5" |
| | | @click="shrinkClick('b', '文献来源')" |
| | | > |
| | | {{ activeBox !== "b" ? "更多 ∨" : "收起 ∧" }} |
| | | </p> |
| | | </li> |
| | |
| | | </li> |
| | | </ul> --> |
| | | </div> |
| | | <div class="content-right" v-loading="loading" element-loading-text="检索结果加载中" |
| | | element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0)"> |
| | | <div |
| | | class="content-right" |
| | | v-loading="loading" |
| | | element-loading-text="检索结果加载中" |
| | | element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(0, 0, 0, 0)" |
| | | > |
| | | <!-- title部分 --> |
| | | <ul class="right-header"> |
| | | <li v-for="(item, index) in associationList" :key="index"> |
| | | <p>{{ item.type }} : {{ item.content }}</p> |
| | | <img @click="removeAssociationList(item.content)" :src="errorIcon" alt="" /> |
| | | <img |
| | | @click="removeAssociationList(item.content)" |
| | | :src="errorIcon" |
| | | alt="" |
| | | /> |
| | | </li> |
| | | </ul> |
| | | <!-- 共xx条 --> |
| | | <ul class="right-number"> |
| | | <ul class="number-number"> |
| | | 共找到<span>{{ this.total }}</span>条结果 |
| | | 共找到<span>{{ this.total }}</span |
| | | >条结果 |
| | | </ul> |
| | | <ul class="number-time"> |
| | | 发表时间 |
| | | <span @click="sortChange()"><img :src="!postedSortInfo ? sortBottom : sortTop" alt="" /></span> |
| | | <span @click="sortChange()" |
| | | ><img :src="!postedSortInfo ? sortBottom : sortTop" alt="" |
| | | /></span> |
| | | </ul> |
| | | </ul> |
| | | <!-- 结果展示 --> |
| | | <ul class="right-main" v-for="(item, index) in resultList" :key="index"> |
| | | <ul |
| | | class="right-main" |
| | | v-for="(item, index) in resultList" |
| | | :key="index" |
| | | > |
| | | <li class="main-name"> |
| | | <p>{{ item.name }}</p> |
| | | <p> |
| | |
| | | </p> |
| | | </li> |
| | | <li class="main-sources"> |
| | | <span :class="getResourceTypeClass(item.cmsItemType)">{{ item.resourceTypeName }}</span> |
| | | <span :class="getResourceTypeClass(item.cmsItemType)">{{ |
| | | item.resourceTypeName |
| | | }}</span> |
| | | <span>{{ item.source }}</span> |
| | | <span>{{ item.year }}</span> |
| | | <span v-if="item.DOI">doi:{{ item.DOI }}</span> |
| | |
| | | <li class="main-author"> |
| | | {{ item.author }} |
| | | </li> |
| | | <li class="main-title" :title="item.cleanAbstract" v-if="item.abstract"> |
| | | <li |
| | | class="main-title" |
| | | :title="item.cleanAbstract" |
| | | v-if="item.abstract" |
| | | > |
| | | <span>摘要: </span> |
| | | <span class="page-main-abstract" v-html="item.cleanAbstract"></span> |
| | | </li> |
| | | <li class="main-keyword" v-if="item.keyWords && item.keyWords.length > 0"> |
| | | <li |
| | | class="main-keyword" |
| | | v-if="item.keyWords && item.keyWords.length > 0" |
| | | > |
| | | <span>关键词:</span> |
| | | <span class="keyWord" v-for="(citem, cindex) in item.keyWords" :key="cindex" @click=" |
| | | () => |
| | | handleSearch({ |
| | | text: citem, |
| | | type: 'keyWords', |
| | | label: '关键词', |
| | | }) |
| | | "> |
| | | <span |
| | | class="keyWord" |
| | | v-for="(citem, cindex) in item.keyWords" |
| | | :key="cindex" |
| | | @click=" |
| | | () => |
| | | handleSearch({ |
| | | text: citem, |
| | | type: 'keyWords', |
| | | label: '关键词', |
| | | }) |
| | | " |
| | | > |
| | | {{ citem }} |
| | | </span> |
| | | </li> |
| | | </ul> |
| | | <!-- 分页 --> |
| | | <div class="pagination" v-if="total > 6"> |
| | | <el-pagination @current-change="handleCurrentChange" class="msg-pagination-container" |
| | | :background="isBackground" layout="prev, pager, next" :total="total" :page-size="10"> |
| | | <el-pagination |
| | | @current-change="handleCurrentChange" |
| | | class="msg-pagination-container" |
| | | :background="isBackground" |
| | | layout="prev, pager, next" |
| | | :total="total" |
| | | :page-size="10" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <el-dialog v-model="dialogVisible" :title="aIName" width="60vw" top="3vh" bottom="2vh" |
| | |
| | | { |
| | | type: "input", |
| | | label: "关键词", |
| | | name: "keyword", |
| | | name: "keyWords", |
| | | value: "", |
| | | }, |
| | | { |
| | |
| | | list: [ |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | num: 10, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | years: "2024", |
| | | num: 18, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | years: "2023", |
| | | num: 21, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | years: "2022", |
| | | num: 19, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | years: "2021", |
| | | num: 22, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | check: false, |
| | | }, |
| | | { |
| | | years: "2025", |
| | | num: 20, |
| | | years: "2020", |
| | | num: 24, |
| | | check: false, |
| | | }, |
| | | ], |
| | |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "北京中医药大学大学学报", |
| | | num: 190, |
| | | name: "北京师范大学", |
| | | num: 19, |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "中国中医科学院", |
| | | num: 22, |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "北京中医药大学大学学报", |
| | | num: 190, |
| | | num: 31, |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "北京中医药大学大学学报", |
| | | num: 190, |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "北京中医药大学大学学报", |
| | | num: 190, |
| | | check: false, |
| | | }, |
| | | { |
| | | name: "北京中医药大学大学学报", |
| | | num: 190, |
| | | name: "广州中医药大学", |
| | | num: 25, |
| | | check: false, |
| | | }, |
| | | ], |
| | |
| | | labelList: { |
| | | abstract: "摘要", |
| | | author: "作者", |
| | | keyword: "关键词", |
| | | keyWords: "关键词", |
| | | source: "来源", |
| | | Name: "标题", |
| | | year: "年份", |
| | |
| | | value: key, |
| | | }); |
| | | } else { |
| | | hasKey.content = val[key] |
| | | hasKey.content = val[key]; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | // if (this.associationList && this.associationList.length) { |
| | | // this.associationList.forEach((item) => { |
| | | // if (item.value == "year") { |
| | | // const endDate = item.content.split("/")[0] + "/12/31 23:59:59"; |
| | | // const startDate = item.content.split("/")[0] + "/01/01 00:00:00"; |
| | | // searchData[item.value + ">="] = startDate; |
| | | // searchData[item.value + "<="] = endDate; |
| | | // } else { |
| | | // searchData["||" + item.value + "*"] = item.content; |
| | | // } |
| | | // }); |
| | | // } |
| | | if (this.associationList && this.associationList.length) { |
| | | this.associationList.forEach((item) => { |
| | | if (item.value == "year") { |
| | | const endDate = item.content.split("/")[0] + "/12/31 23:59:59"; |
| | | const startDate = item.content.split("/")[0] + "/01/01 00:00:00"; |
| | | searchData[item.value + ">="] = startDate; |
| | | searchData[item.value + "<="] = endDate; |
| | | } else if (item.value) { |
| | | searchData[item.value + "*"] = item.content; |
| | | } else { |
| | | searchData["||" + item.value + "*"] = item.content; |
| | | } |
| | | }); |
| | | } |
| | | console.log(searchData, "searchData"); |
| | | MG.resource |
| | | .getItem({ |
| | |
| | | }, |
| | | getResourceTypeClass(typeName) { |
| | | switch (typeName) { |
| | | case 'journal': |
| | | return 'journal-color'; |
| | | case 'books': |
| | | return 'books-color'; |
| | | case 'video': |
| | | return 'video-color'; |
| | | case 'audio': |
| | | return 'audio-color'; |
| | | case 'newspaper': |
| | | return 'newspaper-color'; |
| | | case "journal": |
| | | return "journal-color"; |
| | | case "books": |
| | | return "books-color"; |
| | | case "video": |
| | | return "video-color"; |
| | | case "audio": |
| | | return "audio-color"; |
| | | case "newspaper": |
| | | return "newspaper-color"; |
| | | default: |
| | | return 'other-color'; |
| | | return "other-color"; |
| | | } |
| | | }, |
| | | |
| | |
| | | border-color: #d1d1d1; |
| | | } |
| | | |
| | | ::v-deep .el-checkbox .el-checkbox__input.is-checked+.el-checkbox__label { |
| | | ::v-deep .el-checkbox .el-checkbox__input.is-checked + .el-checkbox__label { |
| | | color: #2c2c2c; |
| | | } |
| | | |
| | | ::v-deep .el-checkbox .el-checkbox__input.is-checked .el-checkbox__inner, |
| | | ::v-deep .el-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner { |
| | | ::v-deep |
| | | .el-checkbox |
| | | .el-checkbox__input.is-indeterminate |
| | | .el-checkbox__inner { |
| | | border-color: #8f7a5a; |
| | | background-color: #8f7a5a; |
| | | } |
| | |
| | | } |
| | | |
| | | .books-color { |
| | | background-color: #C48787; |
| | | background-color: #c48787; |
| | | } |
| | | |
| | | .video-color { |
| | | background-color: #6F8F5A; |
| | | background-color: #6f8f5a; |
| | | } |
| | | |
| | | .audio-color { |
| | |
| | | } |
| | | |
| | | .newspaper-color { |
| | | background-color: #8D77B3; |
| | | background-color: #8d77b3; |
| | | } |
| | | |
| | | .other-color { |
| | | background-color: #009F9F; |
| | | background-color: #009f9f; |
| | | } |
| | | |
| | | |
| | | |
| | | .main-sources { |
| | | span:nth-child(1) { |
| | |
| | | border: 1px solid #cccccc; |
| | | } |
| | | |
| | | :deep.msg-pagination-container.is-background .el-pager li:not(.disabled).active { |
| | | :deep.msg-pagination-container.is-background |
| | | .el-pager |
| | | li:not(.disabled).active { |
| | | /*当前选中页数的样式进行修改*/ |
| | | background-color: #937950; |
| | | color: #fff; |
| | |
| | | } |
| | | |
| | | :deep.el-pagination.is-background .el-pager li:not(.disabled):hover { |
| | | color: #937950 |
| | | color: #937950; |
| | | } |
| | | |
| | | :deep.el-button--primary { |
| | |
| | | class="gradchild" |
| | | v-for="(citem, cindex) in item.list" |
| | | :style="{ background: citem.color }" |
| | | @click.stop="showDetail(index, cindex, 1, $event)" |
| | | @click.self="showDetail(index, cindex, 1, $event)" |
| | | :key="cindex" |
| | | > |
| | | <div class="detailDialog" v-if="citem.showDetail"> |
| | | <div |
| | | class="detailDialog" |
| | | :style="popupStyle" |
| | | v-if="citem.showChildDetail" |
| | | > |
| | | <div |
| | | class="closeBtn" |
| | | @click.stop="closeDetail(index, cindex, 0)" |
| | |
| | | import moment from "moment"; |
| | | import floatingWindow from "./floatingWindow.vue"; |
| | | import yearWindow from "./yearWindow.vue"; |
| | | import { nextTick } from "vue"; |
| | | import fileApi from "@/assets/js/middleGround/api/file"; |
| | | import { requestCtx, appRefCode } from "@/assets/js/config"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | audio: "#b9a587", |
| | | newspaper: "#8d77b3", |
| | | other: "#009f9f", |
| | | }, |
| | | popupStyle: { |
| | | left: "0", |
| | | top: "0", |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | const listData = await this.getYearResource(item); |
| | | if (listData.length > 0) { |
| | | this.$set(item, "list", listData); |
| | | console.log(item, "item"); |
| | | for (let j = 0; j < listData.length; j++) { |
| | | const element = listData[j]; |
| | | this.$set(element, "showChildDetail", false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | console.log(this.contentList, "this.contentList"); |
| | | this.contentList = res.datas; |
| | | this.showList = true; |
| | | }); |
| | |
| | | for (let i = 0; i < filterList.length; i++) { |
| | | const item = filterList[i]; |
| | | if (item.file) { |
| | | const requestCtx = |
| | | this.config.requestCtx + `/file/api/ApiDownload?md5=${item.file}`; |
| | | const requestCtx = await this.getResourcePath(item.file); |
| | | this.$set(item, "fileLink", requestCtx); |
| | | } |
| | | this.$set(item, "showDetail", false); |
| | |
| | | } |
| | | return filterList; |
| | | }, |
| | | |
| | | // 获取阿里云加速地址 (视频,音频) |
| | | async getResourcePath(md5) { |
| | | try { |
| | | // 如果返回的数据为空或未定义,则拼接默认下载路径 |
| | | return requestCtx + "/file/api/ApiDownload?md5=" + md5; |
| | | } catch (error) { |
| | | // 捕获异常并打印错误日志 |
| | | console.error("获取资源路径失败:", error); |
| | | // 返回一个默认值或抛出错误(根据业务需求) |
| | | return requestCtx + "/file/api/ApiDownload?md5=" + md5; |
| | | } |
| | | }, |
| | | |
| | | closeDetail(index, cindex, type) { |
| | | for (let i = 0; i < this.contentList.length; i++) { |
| | | const item = this.contentList[i]; |
| | | if (item && item.length > 0) { |
| | | if (item && item.list?.length > 0) { |
| | | for (let j = 0; j < item.list.length; j++) { |
| | | const citem = item.list[j]; |
| | | this.$set(citem, "showDetail", false); |
| | | this.$set(citem, "showChildDetail", false); |
| | | } |
| | | } |
| | | } |
| | | this.contentList[index].list[cindex].showDetail = false; |
| | | }, |
| | | showDetail(index, cindex, type, event) { |
| | | const rect = event.target.getBoundingClientRect(); |
| | | const screenWidth = window.innerWidth; |
| | | const popupWidth = 542; // 假设弹框宽度为200px |
| | | // 判断触发元素位置 |
| | | if (rect.left + rect.width / 2 < screenWidth / 2) { |
| | | // 左侧显示弹框在右侧 |
| | | this.popupStyle = { |
| | | left: `${rect.right}px`, |
| | | top: `${rect.bottom - 150}px`, |
| | | }; |
| | | } else { |
| | | // 右侧显示弹框在左侧 |
| | | this.popupStyle = { |
| | | left: `${rect.left - popupWidth}px`, |
| | | top: `${rect.bottom - 150}px`, |
| | | }; |
| | | } |
| | | console.log(this.popupStyle.top, "this.top"); |
| | | console.log(this.popupStyle.left, "this.left"); |
| | | // if (rect.left - popupWidth < 0) { |
| | | // // 左侧空间不足时强制右侧显示 |
| | | // this.popupStyle.left = `${rect.right}px`; |
| | | // } else if (rect.right + popupWidth > screenWidth) { |
| | | // // 右侧空间不足时强制左侧显示 |
| | | // this.popupStyle.left = `${rect.left - popupWidth}px`; |
| | | // } |
| | | |
| | | console.log(event, "event"); |
| | | for (let i = 0; i < this.contentList.length; i++) { |
| | | const item = this.contentList[i]; |
| | | if (item && item.length > 0) { |
| | | if (item && item.list?.length > 0) { |
| | | for (let j = 0; j < item.list.length; j++) { |
| | | const citem = item.list[j]; |
| | | this.$set(citem, "showDetail", false); |
| | | item.showDetail = false; |
| | | if (citem.showChildDetail) { |
| | | this.contentList[i].list[j].showDetail = false; |
| | | citem.showChildDetail = false; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (this.contentList[index].list[cindex].type) { |
| | | this.contentList[index].list[cindex].showDetail = true; |
| | | this.contentList[index].list[cindex].showChildDetail = true; |
| | | } |
| | | console.log(this.contentList[index].list, "this.contentList[index].list[cindex]"); |
| | | console.log( |
| | | this.contentList[index].list, |
| | | "this.contentList[index].list[cindex]" |
| | | ); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | overflow: auto; |
| | | font-family: Source Han Sans; |
| | | } |
| | | |
| | | .pageBox { |
| | |
| | | cursor: pointer; |
| | | position: relative; |
| | | } |
| | | |
| | | .gradchild:hover { |
| | | width: 25px; |
| | | height: 25px; |
| | | margin-top: 2px; |
| | | margin-right: 2px; |
| | | // transform: scale(1.1); |
| | | width: 23px; |
| | | height: 23px; |
| | | cursor: pointer; |
| | | position: relative; |
| | | } |
| | | |
| | | /* 重置子元素的样式 */ |
| | | // .gradchild:hover .detailDialog { |
| | | // transform: scale(1); |
| | | // z-index: 999; |
| | | // } |
| | | |
| | | .item-circle { |
| | | width: 100%; |
| | | height: 20px; |
| | |
| | | background: #fff; |
| | | cursor: pointer; |
| | | } |
| | | .item-circle:hover:before { |
| | | background-color: #b9a587; |
| | | border: 1px solid #8f7a5a; |
| | | } |
| | | |
| | | .item-text { |
| | | margin-top: 16px; |
| | |
| | | align-items: center; |
| | | } |
| | | .detailDialog { |
| | | position: absolute; |
| | | top: -700%; |
| | | transform: translateY(20%); |
| | | transform: translateX(-50%); |
| | | position: fixed; |
| | | width: 524px; |
| | | z-index: 9999; |
| | | cursor: pointer; |
| | | background: #fff; |
| | | border: 2px solid #cbbeaa; |
| | | box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.5); |
| | | } |
| | | |
| | | video { |
| | | border-radius: 10px; |
| | | border: 1px solid #dcdcdc; |
| | | box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1); |
| | | } |
| | | |
| | | .yaerWindow { |
| | |
| | | border: 2px solid #cbbeaa; |
| | | box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.5); |
| | | } |
| | | .detailDialog .dialogContent { |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: #fff; |
| | | position: relative; |
| | | padding: 5px; |
| | | z-index: 20; |
| | | box-sizing: border-box; |
| | | } |
| | | // .detailDialog .dialogContent { |
| | | // width: 100%; |
| | | // height: 100%; |
| | | // background-color: #fff; |
| | | // position: relative; |
| | | // padding: 5px; |
| | | // z-index: 20; |
| | | // box-sizing: border-box; |
| | | // } |
| | | .closeBtn { |
| | | position: absolute; |
| | | width: 20px; |
| | |
| | | color: #937950; |
| | | } |
| | | } |
| | | |
| | | </style> |
| | |
| | | <div class="leftTxt" v-html="info.eventOverview"></div> |
| | | <div class="rightimg"> |
| | | <div class="imgBox" style="text-align: center" v-if="imgLink != ''"> |
| | | <div class="arrowBox leftArrowBox"> |
| | | <div class="arrowBox leftArrowBox" @click="leftArrow"> |
| | | <img class="autoImg" :src="arrow" alt="" /> |
| | | </div> |
| | | <div class="imgBox"> |
| | | <img class="autoImg" :src="imgLink" alt="" /> |
| | | </div> |
| | | <div class="arrowBox"> |
| | | <img class="autoImg" :src="arrow" alt="" /> |
| | | <div class="arrowBox" @click="rightArrow"> |
| | | <img class="autoImg" :src="arrow" alt="" /> |
| | | </div> |
| | | </div> |
| | | <div style="text-align: center; font-size: 18px; color: #999" v-else> |
| | |
| | | title: "", |
| | | imgLink: "", |
| | | arrow, |
| | | currentIndex: 0, |
| | | imgList: [], |
| | | }; |
| | | }, |
| | | methods: {}, |
| | | methods: { |
| | | leftArrow() { |
| | | if (this.currentIndex == 0) { |
| | | this.currentIndex = this.imgList.length - 1; |
| | | this.imgLink = this.imgList[this.currentIndex]; |
| | | } else { |
| | | this.currentIndex--; |
| | | this.imgLink = this.imgList[this.currentIndex]; |
| | | } |
| | | }, |
| | | rightArrow() { |
| | | if (this.currentIndex == this.imgList.length - 1) { |
| | | this.currentIndex = 0; |
| | | this.imgLink = this.imgList[this.currentIndex]; |
| | | } else { |
| | | this.currentIndex++; |
| | | this.imgLink = this.imgList[this.currentIndex]; |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | console.log(this.info); |
| | | this.title = |
| | | this.info.name.split(",")[0] + " " + this.info.name.split(",")[1]; |
| | | this.imgLink = getPublicImage(this.info.eventPictures); |
| | | console.log(this.imgLink); |
| | | console.log( |
| | | Array.isArray(this.info.eventPictures), |
| | | "Array.isArray(this.info.eventPictures)" |
| | | ); |
| | | if (Array.isArray(this.info.eventPictures)) { |
| | | console.log(1); |
| | | |
| | | this.imgList = this.info.eventPictures.map((item) => |
| | | getPublicImage(item) |
| | | ); |
| | | this.imgLink = this.imgList[0]; |
| | | } else { |
| | | this.imgLink = getPublicImage(this.info.eventPictures); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | height: 30px; |
| | | position: relative; |
| | | } |
| | | .imgBox{ |
| | | .imgBox { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .arrowBox{ |
| | | .arrowBox { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .leftArrowBox{ |
| | | .leftArrowBox { |
| | | transform: rotate(180deg); |
| | | } |
| | | </style> |
| | |
| | | </div> |
| | | <div class="page-main-father"> |
| | | <div class="page-main-title"> |
| | | <p @click="changeTab('chart')" :class="[activeTabs == 'chart' ? 'active-tab' : '']"> |
| | | <img :src="[activeTabs == 'chart' ? chartIcon : noChartIcon]" alt="" /> |
| | | <p |
| | | @click="changeTab('chart')" |
| | | :class="[activeTabs == 'chart' ? 'active-tab' : '']" |
| | | > |
| | | <img |
| | | :src="[activeTabs == 'chart' ? chartIcon : noChartIcon]" |
| | | alt="" |
| | | /> |
| | | <span>图表显示</span> |
| | | </p> |
| | | <p @click="changeTab('list')" :class="[activeTabs == 'list' ? 'active-tab' : '']"> |
| | | <p |
| | | @click="changeTab('list')" |
| | | :class="[activeTabs == 'list' ? 'active-tab' : '']" |
| | | > |
| | | <img :src="[activeTabs == 'list' ? listIcon : noListIcon]" alt="" /> |
| | | <span>列表显示</span> |
| | | </p> |
| | | </div> |
| | | <!-- 图表显示 --> |
| | | <div class="charts-main" v-show="activeTabs == 'chart'" v-loading="loading" element-loading-text="图表加载中" |
| | | element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0)"> |
| | | <div |
| | | class="charts-main" |
| | | v-show="activeTabs == 'chart'" |
| | | v-loading="loading" |
| | | element-loading-text="图表加载中" |
| | | element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(0, 0, 0, 0)" |
| | | > |
| | | <div class="radial-tree-container" v-show="!loading"> |
| | | <div ref="chart" style="width: 100%; height: 70vh"></div> |
| | | </div> |
| | |
| | | </div> |
| | | <transition name="el-fade-in-linear"> |
| | | <div class="tooltipBox" v-show="tooltipShow"> |
| | | <div style=" |
| | | <div |
| | | style=" |
| | | padding: 10px; |
| | | background: #fdf8f0; |
| | | border-radius: 5px; |
| | | width: 100%; |
| | | max-height: 500px; |
| | | text-align: center; |
| | | "> |
| | | " |
| | | > |
| | | <div class="closeBtn" @click="tooltipShow = false"> |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | <div style="display: flex"> |
| | | <div style=" |
| | | <div |
| | | style=" |
| | | width: 80px; |
| | | height: 80px; |
| | | position: relative; |
| | | margin-bottom: 10px; |
| | | background: #d8d8d8; |
| | | "> |
| | | <img class="autoImg" :src="currentNodeInfo.icon |
| | | ? currentNodeInfo.icon |
| | | : '@/assets/images/directory/touxiang.png' |
| | | " alt="" /> |
| | | " |
| | | > |
| | | <img |
| | | class="autoImg" |
| | | :src=" |
| | | currentNodeInfo.icon |
| | | ? currentNodeInfo.icon |
| | | : '@/assets/images/directory/touxiang.png' |
| | | " |
| | | alt="" |
| | | /> |
| | | </div> |
| | | <div style="padding-top: 20px; text-align: left; margin-left: 20px"> |
| | | <div style=" |
| | | <div |
| | | style="padding-top: 20px; text-align: left; margin-left: 20px" |
| | | > |
| | | <div |
| | | style=" |
| | | font-size: 16px; |
| | | font-weight: bold; |
| | | margin-bottom: 5px; |
| | | "> |
| | | " |
| | | > |
| | | {{ currentNodeInfo.name }} |
| | | </div> |
| | | <div style="margin-top: 20px"> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div style=" |
| | | <div |
| | | style=" |
| | | font-size: 16px; |
| | | font-weight: bold; |
| | | margin-bottom: 5px; |
| | | text-align: left; |
| | | margin-top: 10px; |
| | | "> |
| | | " |
| | | > |
| | | <p style="margin-bottom: 15px"> |
| | | 学习时间:{{ currentNodeInfo.studyTime || "-" }} |
| | | </p> |
| | |
| | | 职称:{{ currentNodeInfo.professionalTitle || "-" }} |
| | | </p> |
| | | </div> |
| | | <div style=" |
| | | <div |
| | | style=" |
| | | text-align: left; |
| | | line-height: 22px; |
| | | max-height: 200px; |
| | | overflow-y: auto; |
| | | padding: 10px; |
| | | "> |
| | | " |
| | | > |
| | | <div v-html="currentNodeInfo.studentProfile"></div> |
| | | </div> |
| | | <!-- <div |
| | |
| | | </div> |
| | | <!-- 列表显示 --> |
| | | <div class="page-main" v-show="activeTabs == 'list'"> |
| | | <div v-loading="loading" style="min-height: 550px" element-loading-background="rgba(0, 0, 0, 0)" |
| | | element-loading-text="学生列表加载中" element-loading-spinner="el-icon-loading"> |
| | | <div |
| | | v-loading="loading" |
| | | style="min-height: 550px" |
| | | element-loading-background="rgba(0, 0, 0, 0)" |
| | | element-loading-text="学生列表加载中" |
| | | element-loading-spinner="el-icon-loading" |
| | | > |
| | | <div v-for="(item, index) in universityList" :key="index"> |
| | | <div class="table-title" v-if="item.agreelist && item.agreelist.length > 0"> |
| | | <div |
| | | class="table-title" |
| | | v-if="item.agreelist && item.agreelist.length > 0" |
| | | > |
| | | <div class="table-title-left"> |
| | | <p class="table-title-name">{{ item.unitName }}</p> |
| | | </div> |
| | | <div class="table-title-right" @click="item.isShow = !item.isShow"> |
| | | <div |
| | | class="table-title-right" |
| | | @click="item.isShow = !item.isShow" |
| | | > |
| | | <img :src="[item.isShow ? topIcon : bottomIcon]" alt="" /> |
| | | </div> |
| | | </div> |
| | | <div v-if="item.agreelist && item.agreelist.length > 0 && item.isShow"> |
| | | <div |
| | | v-if="item.agreelist && item.agreelist.length > 0 && item.isShow" |
| | | > |
| | | <div v-for="(citem, cindex) in item.agreelist" :key="cindex"> |
| | | <div class="agree-title"> |
| | | <p class="table-title-degree">{{ citem.academicDegreeName }}</p> |
| | | <p class="table-title-degree"> |
| | | {{ citem.academicDegreeName }} |
| | | </p> |
| | | <p class="table-title-number"> |
| | | {{ citem.studentList.length }}人 |
| | | </p> |
| | |
| | | <th>职务</th> |
| | | <th>职称</th> |
| | | </tr> |
| | | <tr v-for="(ditem, dindex) in citem.studentList" :key="dindex"> |
| | | <tr |
| | | v-for="(ditem, dindex) in citem.studentList" |
| | | :key="dindex" |
| | | > |
| | | <td> |
| | | {{ ditem.name }} |
| | | </td> |
| | |
| | | <td> |
| | | {{ |
| | | ditem.professionalTitle === undefined || |
| | | ditem.professionalTitle === "" |
| | | ditem.professionalTitle === "" |
| | | ? "-" |
| | | : ditem.professionalTitle |
| | | }} |
| | |
| | | backgroundColor: "#FDF8F0", |
| | | formatter: (params) => { |
| | | const data = params.data; |
| | | this.currentNodeInfo = data; |
| | | // this.currentNodeInfo = data; |
| | | // console.log(data, "data"); |
| | | if (data.cmsItemType == "student") { |
| | | return ` |
| | |
| | | text-align: center; |
| | | "> |
| | | <div style="width: 80px;height: 80px;position: relative; margin: 0 auto; margin-bottom: 10px;background: #D8D8D8;"> |
| | | <img class="autoImg" src="${data.icon |
| | | ? data.icon |
| | | : require("@/assets/images/directory/touxiang.png") |
| | | }" alt=""> |
| | | <img class="autoImg" src="${ |
| | | data.icon |
| | | ? data.icon |
| | | : require("@/assets/images/directory/touxiang.png") |
| | | }" alt=""> |
| | | </div> |
| | | <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${data.name || "-" |
| | | <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${ |
| | | data.name || "-" |
| | | }</div> |
| | | <div> <span> ${data.gender == "male" ? "男" : "女" || "-" |
| | | } </span> <span> ${data.academicName || "-"} </span> <span> ${this.legendList.find((item) => item.value == data.unit)?.name || |
| | | <div> <span> ${ |
| | | data.gender == "male" ? "男" : "女" || "-" |
| | | } </span> <span> ${data.academicName || "-"} </span> <span> ${ |
| | | this.legendList.find((item) => item.value == data.unit)?.name || |
| | | "-" |
| | | } </span></div> |
| | | } </span></div> |
| | | <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;text-align: left;margin-top: 10px;overflow: hidden;"> |
| | | <p style="margin-bottom: 5px;">学习时间:${data.studyTime || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px; white-space: pre-wrap" >现工作单位:${data.currentEmployer_secondary || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px;">职务:${data.jobTitle || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px;">职称:${data.professionalTitle || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px;">学习时间:${ |
| | | data.studyTime || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px; white-space: pre-wrap" >现工作单位:${ |
| | | data.currentEmployer_secondary || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px;">职务:${ |
| | | data.jobTitle || "-" |
| | | }</p> |
| | | <p style="margin-bottom: 5px;">职称:${ |
| | | data.professionalTitle || "-" |
| | | }</p> |
| | | </div> |
| | | |
| | | </div> |
| | | `; |
| | | } else { |
| | | return ` |
| | | <div style=" |
| | | padding: 10px; |
| | | background: #FDF8F0; |
| | | border-radius: 5px; |
| | | max-width: 300px; |
| | | width: 360px; |
| | | text-align: center; |
| | | "> |
| | | <div style="width: 80px;height: 80px;position: relative; margin: 0 auto; margin-bottom: 10px;background: #D8D8D8;"> |
| | | <img class="autoImg" src="${require("@/assets/images/directory/touxiang.png")}" alt=""> |
| | | </div> |
| | | <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${data.name |
| | | }</div> |
| | | <div> <span> ${data.academicDegreeName || "-"} </span></div> |
| | | |
| | | </div> |
| | | `; |
| | | } |
| | | // } else { |
| | | // return ` |
| | | // <div style=" |
| | | // padding: 10px; |
| | | // background: #FDF8F0; |
| | | // border-radius: 5px; |
| | | // max-width: 300px; |
| | | // width: 360px; |
| | | // text-align: center; |
| | | // "> |
| | | // <div style="width: 80px;height: 80px;position: relative; margin: 0 auto; margin-bottom: 10px;background: #D8D8D8;"> |
| | | // <img class="autoImg" src="${require("@/assets/images/directory/touxiang.png")}" alt=""> |
| | | // </div> |
| | | // <div style="font-size: 16px; font-weight: bold; margin-bottom: 5px;">${data.name |
| | | // }</div> |
| | | // <div> <span> ${data.academicDegreeName || "-"} </span></div> |
| | | |
| | | // </div> |
| | | // `; |
| | | // } |
| | | }, |
| | | }, |
| | | textStyle: { |
| | |
| | | }, |
| | | |
| | | label: { |
| | | position: "top", //标签的位置。 |
| | | // position: "left", //标签的位置。 |
| | | verticalAlign: "middle", //文字垂直对齐方式,默认自动。 |
| | | fontSize: 12, //文字的字体大小 |
| | | color: "#bc1c00", |
| | | // color: "#bc1c00", |
| | | }, |
| | | // leaves: { |
| | | // symbol: "emptyCircle", |
| | |
| | | // }, |
| | | expandAndCollapse: false, |
| | | lineStyle: { |
| | | color: "#bc1c00", |
| | | width: 1, |
| | | }, |
| | | itemStyle: { |
| | |
| | | this.chart.setOption(option); |
| | | this.chart.on("click", (params) => { |
| | | // console.log("点击时的回调", params); |
| | | console.log(params, "params"); |
| | | if (params.data?.cmsItemType && params.data?.cmsItemType == "student") { |
| | | this.tooltipShow = true; |
| | | this.currentNodeInfo = params.data; |
| | | } |
| | | }); |
| | | }, |
| | | handleResize() { |
| | |
| | | studentList: [], |
| | | }); |
| | | }); |
| | | }) |
| | | }); |
| | | console.log(schoolList, "schoolList"); |
| | | this.unitList.forEach((item) => { |
| | | this.academicDegreeList.forEach((citem) => { |
| | |
| | | this.legendList.find( |
| | | (legendItem) => legendItem.value === item.value |
| | | )?.color || "#000000", |
| | | }, |
| | | }, |
| | | children: [], |
| | | }); |
| | | }); |
| | |
| | | (f) => f.value == item.academicDegree |
| | | )?.name; |
| | | citem.studentList.push(item); |
| | | item['itemStyle'] = citem.itemStyle; |
| | | citem.children.push(item); |
| | | } |
| | | }); |
| | |
| | | res.datas.forEach((item) => { |
| | | schoolList.forEach((citem) => { |
| | | citem.agreelist.forEach((ditem) => { |
| | | if (item.unit == citem.unitValue && item.academicDegree == ditem.academicDegreeValue) { |
| | | if ( |
| | | item.unit == citem.unitValue && |
| | | item.academicDegree == ditem.academicDegreeValue |
| | | ) { |
| | | ditem.studentList.push(item); |
| | | } |
| | | }); |
| | |
| | | // 使用filter方法过滤schoolList,删除agreelist长度为0的item |
| | | schoolList = schoolList.filter((item) => { |
| | | // 先过滤掉那些studentList长度为0的citem |
| | | item.agreelist = item.agreelist.filter((citem) => citem.studentList.length > 0); |
| | | item.agreelist = item.agreelist.filter( |
| | | (citem) => citem.studentList.length > 0 |
| | | ); |
| | | // 然后检查过滤后的agreelist长度是否大于0 |
| | | return item.agreelist.length > 0; |
| | | }); |
| | |
| | | line-height: 20px; |
| | | } |
| | | |
| | | |
| | | th { |
| | | font-family: Source Han Serif CN; |
| | | font-size: 14px; |
| | |
| | | margin-top: 2px; |
| | | line-height: 35px; |
| | | |
| | | |
| | | .table-title-left { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | height: auto; |
| | | } |
| | | } |
| | | |
| | | |
| | | .agree-title { |
| | | display: flex; |
| | |
| | | </div> |
| | | <div class="menuTitle">{{ item.title }}</div> |
| | | <div class="menuSubTitle">{{ item.subTitle }}</div> |
| | | <div class="menuLine"><i class="el-icon-right"></i></div> |
| | | <div class="menuLine"><img class="autoImg" :src="arrow" alt="" /></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import rongyu from "@/assets/images/menuIcon/rongyu.png"; |
| | | import xueshu from "@/assets/images/menuIcon/xueshu.png"; |
| | | import homeBg from "@/assets/images/homeBg1.jpg"; |
| | | |
| | | import arrow from "@/assets/images/right_arrow.svg"; |
| | | export default { |
| | | components: { |
| | | SearchBox, |
| | |
| | | |
| | | data() { |
| | | return { |
| | | arrow, |
| | | menuList: [ |
| | | { |
| | | icon: nianpu1, |
| | |
| | | position: relative; |
| | | box-sizing: border-box; |
| | | font-family: siyuan; |
| | | |
| | | } |
| | | .bgBox { |
| | | width: 100%; |
| | |
| | | font-size: 28px; |
| | | margin-top: 20px; |
| | | font-family: siyuan; |
| | | |
| | | } |
| | | .menuLine { |
| | | width: 30px; |
| | | height: 30px; |
| | | position: relative; |
| | | margin-top: 40px; |
| | | font-size: 40px; |
| | | } |
| | |
| | | text-align: center; |
| | | } |
| | | |
| | | @media screen and (min-width: 1950px) { |
| | | /* @media screen and (min-width: 1950px) { |
| | | .textInfo { |
| | | font-size: 20px; |
| | | line-height: 24px; |
| | | } |
| | | } |
| | | } */ |
| | | </style> |