| | |
| | | <p>{{ item.name }}</p> |
| | | <p> |
| | | <el-button @click="goPage(item.id)">详情</el-button> |
| | | <el-button @click="openAiReading(item.AIReading, item.name)">AI智能阅读</el-button> |
| | | <el-button @click="openAiReading(item.AIReading, item.name)" |
| | | >AI智能阅读</el-button |
| | | > |
| | | </p> |
| | | </li> |
| | | <li class="main-sources"> |
| | |
| | | v-if="item.abstract" |
| | | > |
| | | <span>摘要: </span> |
| | | <span class="page-main-abstract" v-html="item.cleanAbstract"></span> |
| | | <span |
| | | class="page-main-abstract" |
| | | v-html="item.cleanAbstract" |
| | | ></span> |
| | | </li> |
| | | <li |
| | | class="main-keyword" |
| | |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <el-dialog v-model="dialogVisible" :title="aIName" width="60vw" top="3vh" bottom="2vh" |
| | | :visible.sync="dialogVisible" class="custom-dialog"> |
| | | <div class="AIReadingBox" element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(0, 0, 0, 0)"> |
| | | <div class="richTextInitBox" v-if="AIReading" v-html="AIReading"></div> |
| | | <div class="richTextInitError" v-else>网络繁忙,请稍后再试。</div> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | :title="aIName" |
| | | width="60vw" |
| | | top="3vh" |
| | | bottom="2vh" |
| | | :visible.sync="dialogVisible" |
| | | class="custom-dialog" |
| | | > |
| | | <div |
| | | class="AIReadingBox" |
| | | element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(0, 0, 0, 0)" |
| | | > |
| | | <div |
| | | class="richTextInitBox" |
| | | v-if="AIReading" |
| | | v-html="AIReading" |
| | | ></div> |
| | | <div class="richTextInitError" v-else> |
| | | 网络繁忙,请稍后再试。 |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <el-empty v-if="!loading && !resultList.length"></el-empty> |
| | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | console.log(this.$route.query, "query"); |
| | | this.inputType = this.$route.query.type; |
| | | this.inputValue = this.$route.query.value; |
| | | this.getSelectData(); |
| | | }, |
| | | |
| | |
| | | // 请求数据 |
| | | getItemList() { |
| | | this.loading = true; |
| | | console.log(this.inputValue, " inputValue"); |
| | | console.log(this.inputType, " inputType"); |
| | | let searchData = {}; // 初始化一个空对象来存储搜索数据 |
| | | debugger; |
| | | if (this.inputValue) { |
| | | // 如果输入值存在 |
| | | if (this.inputType != "all") { |
| | |
| | | // 遍历输入选项 |
| | | for (let index = 0; index < this.inputOptions.length; index++) { |
| | | const item = this.inputOptions[index]; // 获取当前选项 |
| | | |
| | | debugger; |
| | | if (item.value !== "all") { |
| | | // 如果当前选项的值不是"all" |
| | | if (!Object.keys(searchData).length) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | console.log(this.associationList, "searchData11111"); |
| | | |
| | | if (this.associationList && this.associationList.length) { |
| | | this.associationList.forEach((item) => { |
| | | if (item.value !== "all") { |
| | | 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"; |
| | |
| | | } else { |
| | | searchData["||" + item.value + "*"] = item.content; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | console.log(searchData, "searchData"); |
| | | MG.resource |
| | | .getItem({ |
| | |
| | | this.AIReading = text; |
| | | this.aIName = name; |
| | | this.dialogVisible = true; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |