Commit 3e5c552e authored by 高飞's avatar 高飞
parents d3c50273 d5e12337
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
html body { html body {
height: 100%; height: 100%;
margin: 0px !important; margin: 0px !important;
overflow: hidden;
} }
</style> </style>
</head> </head>
......
import { get, post, addParam } from "../util/http_util";
const PREFIX_RECORDS = 'api/rest/chat/chatRecords';
//分页查询群聊记录
export const getRecordsByPaging = (chatRoomId, currPage, pageSize, startTime, endTime, fromUserId) => {
let url = `${PREFIX_CHATROOM}/chatRecords/page`;
url += addParam({ chatRoomId, currPage, pageSize, startTime, endTime, fromUserId });
return get(url);
}
//分页查询私信信息
export const getPrivateLetterByPaging = (currPage, pageSize, startTime, endTime, userId1, userId2) => {
let url = `${PREFIX_CHATROOM}/chatRecords/direct`;
url += addParam({ currPage, pageSize, startTime, endTime, userId1, userId2 });
return get(url);
}
//查询群聊中未读信息
export const getListUnread = (chatRoomId, userId) => {
return get(`${PREFIX_RECORDS}/chatRecords/listUnread?chatRoomId=${chatRoomId}&userId=${userId}`);
}
\ No newline at end of file
import { get, post, addParam } from "../util/http_util";
const PREFIX_CHATROOM = 'api/rest/chat/chatroom';
//增加聊天室(群组)议题
export const addIssue = data => {
return post(`${PREFIX_CHATROOM}/addIssue`, data);
}
//创建聊天室(群组)
export const createChatRoom = data => {
return post(`${PREFIX_CHATROOM}/create`, data);
}
//查询某个聊天室(群组)详情信息
export const getChatRoomInfo = id => {
return get(`${PREFIX_CHATROOM}/info?id=${id}`);
}
//加入聊天室(群组)
export const joinChatRoom = (chatRoomId, userId) => {
return get(`${PREFIX_CHATROOM}/join?chatRoomId=${chatRoomId}&userId=${userId}`);
}
//离开聊天室(群组)
export const leaveChatRoom = (userId) => {
return get(`${PREFIX_CHATROOM}/leave?chatRoomId=${id}&userId=${userId}`);
}
//查询某个用户所有聊天室(群组)
export const getChatRoomList = (userId) => {
return get(`${PREFIX_CHATROOM}/list?userId=${userId}`);
}
//阅读(群组)信息
export const readChatRoom = (chatRoomId,userId) => {
return get(`${PREFIX_CHATROOM}/readChatRoom?chatRoomId=${chatRoomId}&userId=${userId}`);
}
//设置聊天室(群组)当前议题
export const setChatRoomCurrentIssue = (chatRoomId,currentIssue) => {
return get(`${PREFIX_CHATROOM}/setChatRoomCurrentIssue?chatRoomId=${chatRoomId}&currentIssue=${currentIssue}`);
}
//设置聊天室(群组)状态
export const setChatRoomStatus = (chatRoomId) => {
return get(`${PREFIX_CHATROOM}/setChatRoomStatus?chatRoomId=${chatRoomId}`);
}
import { post_technique } from "../util/http_util";
//命名实体识别 api_technique_entity
//热词 api_technique_hotWord
//消息摘要算法 api_technique_summary
//情感 api_technique_emotion
//命名实体识别
export const entity = data => {
return post(`api_technique_entity/entitu_extract_model_mapping`, data);
}
//热词
export const hotWord = data => {
return post(`api_technique_hotWord/Seqment`, data);
}
//总结
export const summary = data => {
return post(` api_technique_summary/service`, data);
}
//情感
// export const emotionContact = data => {
// return post(`api_technique/service`, data);
// }
//情感 -- 新闻
export const emotionNews = data => {
return post_technique(`api_technique_emotion/service`, data);
}
\ No newline at end of file
import { get, post, delete_util, fileUpload_PUT, addParam } from "../../util/http_util";
const PREFIX_DOCUMENT = "api/rest/3z/document/";
const PREFIX_RESOURCE = "api/rest/3z/resource/";
const PREFIX_ELASTIC = "api/rest/elastic/";
export const queryDoc = (pageNum, pageSize, params) => {
return post(`${PREFIX_DOCUMENT}queryDoc?pageNum=${pageNum}&pageSize=${pageSize}`, params);
}
export const searchFiles = (pageNum, pageSize, params) => {
return post(`${PREFIX_ELASTIC}searchFiles?pageNum=${pageNum}&pageSize=${pageSize}`, params);
}
export const queryDocumentTree = (module) => {
return get(`${PREFIX_DOCUMENT}queryDocumentTree?module=${module}`);
}
export const updateDocumentTreeItem = (data) => {
return post(`${PREFIX_DOCUMENT}updateDocumentTreeItem`,data);
}
export const addDocumentTreeItem = (data) => {
return post(`${PREFIX_DOCUMENT}addDocumentTreeItem`,data);
}
export const removeDocumentTreeItem = (id) => {
return delete_util(`${PREFIX_DOCUMENT}removeDocumentTreeItem/${id}`);
}
...@@ -579,6 +579,32 @@ let fileUpload_PUT = (url, formData, headers = {}) => { ...@@ -579,6 +579,32 @@ let fileUpload_PUT = (url, formData, headers = {}) => {
}) })
}; };
let post_technique = (url, data, headers = {}) => {
return new Promise((resolve, reject) => {
fetch(url, {
method: "POST",
body: typeof data == "object" ? JSON.stringify(data) : data,
headers: new Headers(addHeaders(headers))
}).then(res => {
if (res.status == 200) {
return res.text();
} else {
console.log(res.statusText);
reject(HTTP_STATUS);
}
}).then(res => {
let result = JSON.parse(res);
if (result.status == 'success') {
resolve(JSON.parse(result.data));
} else {
console.log(result);
reject(result);
}
}).catch(err => reject(err));
})
};
export { export {
get, get,
...@@ -609,5 +635,6 @@ export { ...@@ -609,5 +635,6 @@ export {
get_exame, get_exame,
post_exame, post_exame,
delete_util_exame, delete_util_exame,
fileUpload_PUT fileUpload_PUT,
post_technique
} }
\ No newline at end of file
<template>
<el-dialog title="聊天室" :visible.sync="dialogVisible" width="40%" :before-close="handleClose">
<div class="info-messageInfo">
<!-- <div class="title">
<img :src="arrow" alt="">
<span>内部通讯</span>
</div> -->
<div class="messageInfo-content">
<div class="chatPerson">
<span :style="{ backgroundColor: chatPerson.isLine ? '#30d64d' : '#686a6b' }"
v-show="chatPerson.isLine != undefined"></span>&nbsp;
<span v-text="chatPerson.name"></span>
</div>
<div id="chatContent" class="chatContent">
<div v-for="item in chatMessageList" class="everyMessage">
<div v-for="item1 in item.list" :style="{ justifyContent: item.isMe ? 'flex-end' : 'flex-start' }">
<template v-if="!item.isMe">
<img :src="avatar" alt="">
<div v-text="item1" style="background-color:white"></div>
</template>
<template v-else-if="item.isMe">
<div v-text="item1" style="background-color: #85ce61;"></div>
<img :src="avatar" alt="">
</template>
</div>
</div>
</div>
<div class="chatSendMessage">
<div class="messageContent">
<el-input type="textarea" autosize placeholder="请输入内容" v-model="sendMessage">
</el-input>
</div>
<div class="sendMessageButtonList">
<el-button size="mini" type="info" @click="sendNotice">发送公告</el-button>
<el-button size="mini" type="info" @click="test">邮箱</el-button>
<el-button size="mini" type="success" @click="sendMessageFn">发送</el-button>
</div>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
import avatar from '../../../assets/img/ddkz/headPhoto.jpg';
export default {
data() {
return {
dialogVisible: false,
avatar: avatar,
chatPerson: {
name: '',
isLine: undefined
},
chatMessageList: [
{ id: 1, name: 'xxx', isMe: false, list: ['会议主题是xxx', '主要强调两个方面'] },
{ id: 2, name: 'summer', isMe: true, list: ['确定主题', '同意'] },
{ id: 1, name: 'xxx', isMe: false, list: ['会议主题是xxx', '主要强调两个方面'] },
{ id: 2, name: 'summer', isMe: true, list: ['确定主题', '同意'] },
{ id: 1, name: 'xxx', isMe: false, list: ['会议主题是xxx', '主要强调两个方面'] },
{ id: 2, name: 'summer', isMe: true, list: ['确定主题', '同意'] }
],
}
},
props: {
visible: Boolean
},
methods: {
handleClose() {
this.$emit('handleCancel');
}
},
mounted() {
this.dialogVisible = this.$props.visible;
}
}
</script>
<style lang="scss">
.info-messageInfo {
width: 100%;
height: 70%;
.title {
width: 100%;
height: 30px;
line-height: 30px;
img {
width: 20px;
height: 20px;
}
span {
font-size: 16px;
font-weight: 500;
color: white;
vertical-align: text-bottom;
}
}
.messageInfo-content {
width: 100%;
height: calc(100% - 40px);
margin-top: 10px;
padding: 0px 10px;
border: 1px solid #254751;
box-sizing: border-box;
.chatPerson {
width: 100%;
height: 40px;
line-height: 40px;
display: flex;
justify-content: center;
font-size: 13px;
border-bottom: 1px solid #37383f;
display: none;
&>span:first-child {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
float: left;
margin-top: 15px;
margin-left: 5px;
}
&>span:last-child {
float: left;
margin-left: 10px;
}
}
.chatContent {
width: 100%;
height: 60%;
border-bottom: 1px solid #37383f;
padding: 10px 0px;
box-sizing: border-box;
overflow-y: auto;
.everyMessage {
width: 100%;
margin-top: 10px;
&>div {
width: 100%;
display: flex;
align-items: center;
margin-top: 10px;
font-size: 13px;
img {
width: 20px;
height: 20px;
margin: 0px 10px;
}
&>div {
padding: 5px 10px;
border-radius: 5px;
color: black;
}
}
}
}
.chatSendMessage {
width: 100%;
height: calc(40% - 42px);
position: relative;
.messageContent {
width: 100%;
height: 100%;
padding: 5px;
box-sizing: border-box;
.el-textarea__inner {
height: 100% !important;
color: white !important;
background-color: transparent !important;
border: 1px solid #37383f !important;
}
}
.sendMessageButtonList {
position: absolute;
right: 10px;
bottom: 10px;
}
}
}
}
</style>
\ No newline at end of file
<template>
<el-dialog title="人员情况" :visible.sync="dialogVisible" width="40%" :before-close="handleClose">
<div class="info-personInfo">
<!-- <div class="title">
<img :src="arrow" alt="">
<span>人员情况</span>
</div> -->
<div class="personInfo-content">
<div v-for="item in personList" class="everyPersonList">
<span v-for="item1 in item" @click="selectPerson(item1);">
<span v-text="item1.name"></span>
<span :style="{ backgroundColor: item1.isLine ? '#30d64d' : '#686a6b' }"></span>&nbsp;
</span>
</div>
</div>
</div>
</el-dialog>
</template>
<script>
export default {
data() {
return {
dialogVisible: false,
personList: [[
{
name: '部长 李叔',
isLine: true
},
{
name: '副部长 李文',
isLine: false
},
{
name: '助理 李叔文',
isLine: true
}
], [
{
name: '部长 李叔',
isLine: false
},
{
name: '副部长 李文',
isLine: true
},
{
name: '助理 李叔文',
isLine: true
}
], [
{
name: '部长 李叔',
isLine: true
},
{
name: '副部长 李文',
isLine: false
},
{
name: '助理 李叔文',
isLine: false
}
]],
}
},
props: {
visible: Boolean
},
methods: {
handleClose() {
this.$emit('handleCancel');
}
},
mounted() {
this.dialogVisible = this.$props.visible;
}
}
</script>
<style lang="scss">
.info-personInfo {
width: 100%;
height: 30%;
.title {
width: 100%;
height: 30px;
line-height: 30px;
img {
width: 20px;
height: 20px;
}
span {
font-size: 16px;
font-weight: 500;
color: white;
vertical-align: text-bottom;
}
}
.personInfo-content {
width: 100%;
height: calc(100% - 30px);
.everyPersonList {
width: 100%;
height: 35px;
line-height: 35px;
margin-top: 10px;
padding: 0px 10px;
font-size: 13px;
color: #f1f1f7;
box-sizing: border-box;
&:nth-child(3n) {
background-image: url(../../../assets/img/ddkz/12.png);
background-size: 100% 100%;
}
&:nth-child(3n+1) {
background-image: url(../../../assets/img/ddkz/13.png);
background-size: 100% 100%;
}
&:nth-child(3n+2) {
background-image: url(../../../assets/img/ddkz/14.png);
background-size: 100% 100%;
}
&>span {
float: left;
margin-left: 10px;
&:hover {
color: green;
cursor: pointer;
}
&>span:first-child {
float: left;
}
&>span:last-child {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
float: left;
margin-top: 12.5px;
margin-left: 5px;
}
}
}
}
}
</style>
\ No newline at end of file
<template> <template>
<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> <el-dialog title="发送公告" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
<div class="notice"> <div class="notice">
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-form-item label="标题"> <el-form-item label="标题">
...@@ -45,4 +45,35 @@ export default { ...@@ -45,4 +45,35 @@ export default {
this.dialogVisible = this.$props.visible; this.dialogVisible = this.$props.visible;
} }
} }
</script> </script>
\ No newline at end of file
<style lang="scss">
.el-dialog {
padding: 20px;
box-sizing: border-box;
background-color: transparent;
background-image: url(../../../assets/img/home/dialog.png);
background-size: 100% 100%;
background-repeat: no-repeat;
.el-input__inner {
border: 1px solid #535353 !important;
box-shadow: 0 0 10px #535353;
}
.el-dialog__header {
text-align: center;
}
.el-textarea__inner {
color: white;
border: 1px solid #535353 !important;
box-shadow: 0 0 10px #535353;
background-color: transparent;
}
.el-upload-dragger{
background-color: transparent;
}
}
</style>
\ No newline at end of file
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
</div> </div>
<div class="sendMessageButtonList"> <div class="sendMessageButtonList">
<el-button size="mini" type="info" @click="sendNotice">发送公告</el-button> <el-button size="mini" type="info" @click="sendNotice">发送公告</el-button>
<el-button size="mini" type="info">邮箱</el-button> <el-button size="mini" type="info" @click="test">邮箱</el-button>
<el-button size="mini" type="success" @click="sendMessageFn">发送</el-button> <el-button size="mini" type="success" @click="sendMessageFn">发送</el-button>
</div> </div>
</div> </div>
...@@ -142,6 +142,11 @@ ...@@ -142,6 +142,11 @@
</div> </div>
</transition> </transition>
<noticeDialog-a v-if="visible" :visible="visible" @handleCancel="closeDialog"></noticeDialog-a> <noticeDialog-a v-if="visible" :visible="visible" @handleCancel="closeDialog"></noticeDialog-a>
<ChatRoomDialog v-if="chatRoomVisible" :visible="chatRoomVisible" @handleCancel="closeDialogChatRoom">
</ChatRoomDialog>
<ChatRoomPeople v-if="chatRoomPeopleVisible" :visible="chatRoomPeopleVisible"
@handleCancel="closeDialogChatRoomPeople"></ChatRoomPeople>
<span class="el-icon-setting" @click="test1"></span>
</div> </div>
</template> </template>
...@@ -152,7 +157,8 @@ import goBack from '../../assets/img/xjs/4.png'; ...@@ -152,7 +157,8 @@ import goBack from '../../assets/img/xjs/4.png';
import arrow from '../../assets/img/ddkz/8.png'; import arrow from '../../assets/img/ddkz/8.png';
import avatar from '../../assets/img/ddkz/headPhoto.jpg'; import avatar from '../../assets/img/ddkz/headPhoto.jpg';
import NoticeDialog from '../../view/ddkz/components/noticeDialog.vue'; import NoticeDialog from '../../view/ddkz/components/noticeDialog.vue';
import "animate.css"; import ChatRoomDialog from "./components/chatRoomDialog.vue";
import ChatRoomPeople from "./components/chatRoomPeople.vue";
export default { export default {
data() { data() {
return { return {
...@@ -520,11 +526,15 @@ export default { ...@@ -520,11 +526,15 @@ export default {
// ]), // ]),
avatar: avatar, avatar: avatar,
sendMessage: '', sendMessage: '',
visible: false visible: false,
chatRoomVisible: false,
chatRoomPeopleVisible: false
} }
}, },
components: { components: {
'noticeDialog-a': NoticeDialog 'noticeDialog-a': NoticeDialog,
ChatRoomDialog: ChatRoomDialog,
ChatRoomPeople: ChatRoomPeople
}, },
methods: { methods: {
onSearch() { onSearch() {
...@@ -543,7 +553,7 @@ export default { ...@@ -543,7 +553,7 @@ export default {
this.keepBottom(); this.keepBottom();
this.sendMessage = ''; this.sendMessage = '';
}, 100); }, 100);
}else{ } else {
this.$message.warning('不能发送空白信息'); this.$message.warning('不能发送空白信息');
} }
}, },
...@@ -557,6 +567,18 @@ export default { ...@@ -557,6 +567,18 @@ export default {
sendNotice() { sendNotice() {
this.visible = true; this.visible = true;
}, },
closeDialogChatRoom() {
this.chatRoomVisible = false;
},
test() {
this.chatRoomVisible = true;
},
closeDialogChatRoomPeople() {
this.chatRoomPeopleVisible = false;
},
test1(){
this.chatRoomPeopleVisible = true;
},
query_selector(selector) { query_selector(selector) {
return Array.from(document.querySelectorAll(selector)); return Array.from(document.querySelectorAll(selector));
}, },
...@@ -595,6 +617,7 @@ export default { ...@@ -595,6 +617,7 @@ export default {
.ddkz { .ddkz {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-x: hidden;
.ddkz-all { .ddkz-all {
width: 100%; width: 100%;
...@@ -711,8 +734,9 @@ export default { ...@@ -711,8 +734,9 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
animation:scaleDraw1 ease-in-out infinite 1s alternate; animation: scaleDraw1 ease-in-out infinite 1s alternate;
opacity: 1; opacity: 1;
.circle { .circle {
width: 16px; width: 16px;
height: 16px; height: 16px;
...@@ -731,15 +755,17 @@ export default { ...@@ -731,15 +755,17 @@ export default {
background-color: #f4c659; background-color: #f4c659;
} }
} }
@keyframes scaleDraw1 { @keyframes scaleDraw1 {
from{ from {
transform: scale(1.2); transform: scale(1.2);
opacity: 1; opacity: 1;
} }
to{
transform: scale(1); to {
opacity: 0.5; transform: scale(1);
} opacity: 0.5;
}
} }
&>div:first-child { &>div:first-child {
...@@ -1126,7 +1152,15 @@ export default { ...@@ -1126,7 +1152,15 @@ export default {
} }
} }
} }
.el-icon-setting{
position: absolute;
right: -10px;
bottom: 30px;
font-size: 35px;
&:hover{
right: 10px;
}
}
} }
</style> </style>
\ No newline at end of file
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
<div class="card-content"> <div class="card-content">
<div class="content-img"> <div class="content-img">
<div v-for="(item1, index1) in item.img"> <div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)" <img :src="item1.coverUrl" alt=""
@contextmenu.prevent.stop="showInfo(item1)" /> @click="viewLiterature(item1)" @contextmenu.prevent.stop="showInfo(item1)" />
</div> </div>
</div> </div>
<div class="content-list"> <div class="content-list">
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
<div class="card-content"> <div class="card-content">
<div class="content-img"> <div class="content-img">
<div v-for="(item1, index1) in item.img"> <div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)" <img :src="item1.coverUrl" alt=""
@dblclick="showInfo(item1)" /> @click="viewLiterature(item1)" @dblclick="showInfo(item1)" />
</div> </div>
</div> </div>
<div class="content-list"> <div class="content-list">
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
<div class="card-content"> <div class="card-content">
<div class="content-img"> <div class="content-img">
<div v-for="(item1, index1) in item.img"> <div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)" <img :src="item1.coverUrl" alt=""
@contextmenu.prevent.stop="showInfo(item1)" /> @click="viewLiterature(item1)" @contextmenu.prevent.stop="showInfo(item1)" />
</div> </div>
</div> </div>
<div class="content-list"> <div class="content-list">
...@@ -330,6 +330,7 @@ ...@@ -330,6 +330,7 @@
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
color: white; color: white;
.search { .search {
width: 100%; width: 100%;
height: 50px; height: 50px;
...@@ -1470,6 +1471,10 @@ import { ...@@ -1470,6 +1471,10 @@ import {
delete_util, delete_util,
dateChangeFormat, dateChangeFormat,
} from "../../util/http_util"; } from "../../util/http_util";
import {
searchLiterature, queryLiterature, addRelatedInfo, addLiteratureLabel, queryCollectionFolder, addCollection, addCollectionFolder, removeCollectionFolder,
multiQueryLiterature, queryLiteratureFolder, previewPdf, queryLiteratureById, queryRecommendLiterature
} from '../../api/xxxl/llxx'
import leftTitle from "../../assets/img/flfg/leftTitle.png"; import leftTitle from "../../assets/img/flfg/leftTitle.png";
import rightTitle from "../../assets/img/flfg/rightTitle.png"; import rightTitle from "../../assets/img/flfg/rightTitle.png";
import "animate.css"; import "animate.css";
...@@ -1628,26 +1633,18 @@ export default { ...@@ -1628,26 +1633,18 @@ export default {
}, },
//根据文本信息查询文件 //根据文本信息查询文件
searchLiterature() { searchLiterature() {
post( searchLiterature(this.fulltextPagination.currentPage, this.fulltextPagination.everySize, this.input).then((res) => {
"api/rest/fulltext/searchLiterature?pageNum=" + res.list.forEach((item) => {
this.fulltextPagination.currentPage + item.createTime = dateChangeFormat(
"&pageSize=" + "YYYY-mm-dd HH:MM:SS",
this.fulltextPagination.everySize + item.createTime
"&module=法律法规", );
this.input item["name"] = item.id;
) });
.then((res) => { this.fulltextLiteratureList = res.list;
res.list.forEach((item) => { this.fulltextPagination.total = res.totals;
item.createTime = dateChangeFormat( endLoading();
"YYYY-mm-dd HH:MM:SS", })
item.createTime
);
item["name"] = item.id;
});
this.fulltextLiteratureList = res.list;
this.fulltextPagination.total = res.totals;
endLoading();
})
.catch((err) => { .catch((err) => {
endLoading(); endLoading();
this.$message.warning(err.message); this.$message.warning(err.message);
...@@ -1678,14 +1675,7 @@ export default { ...@@ -1678,14 +1675,7 @@ export default {
}, },
//查询上传的文件 //查询上传的文件
queryLiterature(pageNum, pageSize, title) { queryLiterature(pageNum, pageSize, title) {
get( queryLiterature("法律法规", pageNum, pageSize, title)
"api/rest/document/queryLiterature?module=法律法规&pageNum=" +
pageNum +
"&pageSize=" +
pageSize +
"&origin_name=" +
title
)
.then((res) => { .then((res) => {
this.literatureList = res.list; this.literatureList = res.list;
this.total = res.totals; this.total = res.totals;
...@@ -1703,23 +1693,13 @@ export default { ...@@ -1703,23 +1693,13 @@ export default {
}, },
//以pdf形式预览 //以pdf形式预览
viewLiterature(item) { viewLiterature(item) {
window.open( previewPdf('LiteraturePDF', item.name);
"api/rest/document/viewLiterature/" + item.folder + "/" + item.name
);
}, },
queryLiteratureKinds(pageNum, pageSize, type) { queryLiteratureKinds(pageNum, pageSize, type) {
get( queryLiterature("法律法规", pageNum, pageSize, null, type).then((res) => {
"api/rest/document/queryLiterature?module=法律法规&pageNum=" + this.literatureListKinds = res.list;
pageNum + this.totalKinds = res.totals;
"&pageSize=" + })
pageSize +
"&folder=" +
type
)
.then((res) => {
this.literatureListKinds = res.list;
this.totalKinds = res.totals;
})
.catch((err) => { .catch((err) => {
this.$message.warning(err.message); this.$message.warning(err.message);
}); });
...@@ -1736,7 +1716,7 @@ export default { ...@@ -1736,7 +1716,7 @@ export default {
showInfo(item) { showInfo(item) {
this.xgtj_news_data = []; this.xgtj_news_data = [];
this.xgtj_news(item.id); this.xgtj_news(item.id);
get("api/rest/fulltext/queryLiteratureById?id=" + item.name) queryLiteratureById(item.name)
.then((res) => { .then((res) => {
this.flag = 4; this.flag = 4;
this.pickObj = res; this.pickObj = res;
...@@ -1747,7 +1727,7 @@ export default { ...@@ -1747,7 +1727,7 @@ export default {
}); });
}, },
xgtj_news(id) { xgtj_news(id) {
post("api/rest/fulltext/queryRecommendLiterature?id=" + id) queryRecommendLiterature(id)
.then((res) => { .then((res) => {
if (res.length > 0) { if (res.length > 0) {
this.xgtj_news_data = res; this.xgtj_news_data = res;
...@@ -1919,7 +1899,7 @@ export default { ...@@ -1919,7 +1899,7 @@ export default {
obj["subject"] = this.pickItem.address; obj["subject"] = this.pickItem.address;
obj["relation"] = this.personType; obj["relation"] = this.personType;
obj["objectType"] = "文献"; obj["objectType"] = "文献";
post(`api/rest/resource/addRelatedInfo`, obj) addRelatedInfo(obj)
.then((res) => { .then((res) => {
if (res == 1) { if (res == 1) {
this.$message.success("关联人员成功!"); this.$message.success("关联人员成功!");
...@@ -1948,7 +1928,7 @@ export default { ...@@ -1948,7 +1928,7 @@ export default {
obj["subject"] = this.pickItem.address; obj["subject"] = this.pickItem.address;
obj["relation"] = this.organizationType; obj["relation"] = this.organizationType;
obj["objectType"] = "文献"; obj["objectType"] = "文献";
post(`api/rest/resource/addRelatedInfo`, obj) addRelatedInfo(obj)
.then((res) => { .then((res) => {
if (res == 1) { if (res == 1) {
this.$message.success("关联机构成功!"); this.$message.success("关联机构成功!");
...@@ -1986,10 +1966,7 @@ export default { ...@@ -1986,10 +1966,7 @@ export default {
//确定新增标签 //确定新增标签
defineAddTag() { defineAddTag() {
let labels = this.dynamicTags; let labels = this.dynamicTags;
post( addLiteratureLabel(this.literatureObj.id, labels)
"api/rest/document/addLiteratureLabel?id=" + this.literatureObj.id,
labels
)
.then((res) => { .then((res) => {
if (res == 1) { if (res == 1) {
this.$message.success("添加标签成功!"); this.$message.success("添加标签成功!");
...@@ -2009,10 +1986,7 @@ export default { ...@@ -2009,10 +1986,7 @@ export default {
//收藏 //收藏
//查询收藏目录 //查询收藏目录
searchCollectionFolder() { searchCollectionFolder() {
get( queryCollectionFolder(this.userInfo.account).then((res) => {
"api/rest/resource/queryCollectionFolder?collector=" +
this.userInfo.account
).then((res) => {
this.collectionFolder = res; this.collectionFolder = res;
}); });
}, },
...@@ -2032,7 +2006,7 @@ export default { ...@@ -2032,7 +2006,7 @@ export default {
//选择收藏夹完成上传 //选择收藏夹完成上传
defineAddCollection() { defineAddCollection() {
if (this.collectionData.folderId != undefined) { if (this.collectionData.folderId != undefined) {
post("api/rest/resource/addCollection", this.collectionData).then( addCollection(this.collectionData).then(
(res) => { (res) => {
if (res == 1) { if (res == 1) {
this.$message.success("收藏成功!"); this.$message.success("收藏成功!");
...@@ -2052,7 +2026,7 @@ export default { ...@@ -2052,7 +2026,7 @@ export default {
//新增收藏夹名称 //新增收藏夹名称
addCollectionFolder() { addCollectionFolder() {
if (this.collectionName != "" && this.collectionName != null) { if (this.collectionName != "" && this.collectionName != null) {
post("api/rest/resource/addCollectionFolder", { addCollectionFolder({
name: this.collectionName, name: this.collectionName,
collector: this.userInfo.account, collector: this.userInfo.account,
}) })
...@@ -2073,7 +2047,7 @@ export default { ...@@ -2073,7 +2047,7 @@ export default {
}, },
//删除收藏夹目录 //删除收藏夹目录
delectCollectionFolder(id) { delectCollectionFolder(id) {
delete_util("api/rest/resource/removeCollectionFolder?folderId=" + id) removeCollectionFolder(id)
.then((res) => { .then((res) => {
if (res == 1) { if (res == 1) {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
...@@ -2121,7 +2095,7 @@ export default { ...@@ -2121,7 +2095,7 @@ export default {
//多板块文献资料查询 //多板块文献资料查询
//所有版块id集合 //所有版块id集合
let ids = []; let ids = [];
get("api/rest/document/queryLiteratureFolder?module=法律法规") queryLiteratureFolder("法律法规")
.then((res) => { .then((res) => {
this.moduleList = res; this.moduleList = res;
this.treeData = [ this.treeData = [
...@@ -2165,7 +2139,7 @@ export default { ...@@ -2165,7 +2139,7 @@ export default {
}); });
}) })
.then(() => { .then(() => {
post("api/rest/document/multiQueryLiterature?module=" + "法律法规", ids) multiQueryLiterature("法律法规",false, ids)
.then((res) => { .then((res) => {
this.viewData = res; this.viewData = res;
//国际法 //国际法
...@@ -2191,10 +2165,7 @@ export default { ...@@ -2191,10 +2165,7 @@ export default {
.catch((err) => { }); .catch((err) => { });
//多板块文献资料图片查询 //多板块文献资料图片查询
post( multiQueryLiterature("法律法规",true, ids)
"api/rest/document/multiQueryLiterature?showPic=true&module=法律法规",
ids
)
.then((res) => { .then((res) => {
//三战业务理论 //三战业务理论
this.internationalLaw[0].img = res[1]; this.internationalLaw[0].img = res[1];
......
...@@ -413,6 +413,7 @@ body, ...@@ -413,6 +413,7 @@ body,
<script> <script>
import { get, post } from '../../util/http_util'; import { get, post } from '../../util/http_util';
import { queryLiterature, previewPdf } from "../../api/xxxl/llxx"
export default { export default {
name: 'flfgKinds', name: 'flfgKinds',
data() { data() {
...@@ -430,7 +431,7 @@ export default { ...@@ -430,7 +431,7 @@ export default {
this.selectPane = tab.name; this.selectPane = tab.name;
}, },
queryLiterature(pageNum, pageSize, type) { queryLiterature(pageNum, pageSize, type) {
get('api/rest/document/queryLiterature?module=法律法规&pageNum=' + pageNum + '&pageSize=' + pageSize + '&folder=' + type).then(res => { queryLiterature('法律法规', pageNum, pageSize, null, type).then(res => {
this.literatureList = res.list; this.literatureList = res.list;
this.total = res.totals; this.total = res.totals;
}); });
...@@ -444,7 +445,7 @@ export default { ...@@ -444,7 +445,7 @@ export default {
}, },
//以pdf形式预览 //以pdf形式预览
viewLiterature(item) { viewLiterature(item) {
window.open('api/rest/document/viewLiterature/' + item.folder + '/' + item.name); previewPdf('LiteraturePDF', item.name);
}, },
//返回分类缩写 //返回分类缩写
returnType(type) { returnType(type) {
......
This diff is collapsed.
This diff is collapsed.
...@@ -287,7 +287,7 @@ export default { ...@@ -287,7 +287,7 @@ export default {
console.log(err); console.log(err);
}); });
//ws创建 //ws创建
this.$store.dispatch("initWebsocket"); // this.$store.dispatch("initWebsocket");
//获取通知消息数量 //获取通知消息数量
// get("api/rest/system/user/countNotification?account=" + this.userInfo.account) // get("api/rest/system/user/countNotification?account=" + this.userInfo.account)
// .then(res => { // .then(res => {
......
...@@ -129,8 +129,8 @@ ...@@ -129,8 +129,8 @@
width: calc(15% - 10px); width: calc(15% - 10px);
height: 100%; height: 100%;
margin-left: 10px; margin-left: 10px;
border: 1px solid #146a80 !important; border: 1px solid #535353 !important;
box-shadow: 0 0 10px #1b6097; box-shadow: 0 0 10px #535353;
.jsgl-tree { .jsgl-tree {
width: 100%; width: 100%;
...@@ -206,8 +206,8 @@ ...@@ -206,8 +206,8 @@
width: 85%; width: 85%;
height: 100%; height: 100%;
margin-left: 10px; margin-left: 10px;
border: 1px solid #146a80 !important; border: 1px solid #535353 !important;
box-shadow: 0 0 10px #1b6097; box-shadow: 0 0 10px #535353;
.new-user { .new-user {
width: 120px; width: 120px;
...@@ -325,8 +325,8 @@ ...@@ -325,8 +325,8 @@
.el-input__inner { .el-input__inner {
background: none; background: none;
color: #ffff; color: #ffff;
border: 1px solid #146a80 !important; border: 1px solid #535353 !important;
box-shadow: 0 0 10px #1b6097; box-shadow: 0 0 10px #535353;
} }
.el-input__count { .el-input__count {
......
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
.el-input__inner { .el-input__inner {
background: none; background: none;
color: #ffff; color: #ffff;
border: 1px solid #3a5f94c9 !important; border: 1px solid #535353 !important;
box-shadow: 0 0 10px #3a5f94c9; box-shadow: 0 0 10px #535353;
} }
.el-input__count { .el-input__count {
......
<template>
<el-dialog title="技术展示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
<div class="notice">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="新技术">
<el-select v-model="form.technique" placeholder="请选择新技术" @change="changeOption">
<el-option v-for="item in techniqueList" :key="item.value" :label="item.label"
:value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="识别文本">
<el-input type="textarea" autosize v-model="form.text"></el-input>
<el-button style="margin-top: 10px;" type="success" @click="identifyText" size="small">识别</el-button>
</el-form-item>
<el-form-item label="识别结果">
<el-input type="textarea" v-model="form.result"></el-input>
</el-form-item>
</el-form>
</div>
</el-dialog>
</template>
<script>
import { entity, hotWord, summary, emotionNews } from '../../../api/newTechnique';
export default {
data() {
return {
dialogVisible: false,
form: {
technique: '',
text: '',
result: '',
},
techniqueList: [
{ label: "命名实体识别", value: 1 },
{ label: "热词", value: 2 },
{ label: "消息摘要算法", value: 3 },
{ label: "情感识别", value: 4 },
]
}
},
props: {
visible: Boolean,
type: Number
},
methods: {
handleClose() {
this.$emit('handleCancel');
},
changeOption(val) {
this.form.text = '';
this.form.result = '';
},
identifyText() {
if (this.form.technique == 1) {
if (this.form.text.trim() != '') {
entity({ action: "entity_extract", language: "zh", text: this.form.text.trim() }).then(res => {
this.form.result = res.score;
})
} else {
alert('未识别到主体!');
}
} else if (this.form.technique == 2) {
if (this.form.text.trim() != '') {
hotWord({ action: "entity_extract", language: "zh", text: this.form.text.trim() }).then(res => {
this.form.result = res.score;
})
} else {
alert('未识别到主体!');
}
} else if (this.form.technique == 3) {
if (this.form.text.trim() != '') {
summary({ language: "zh", text: this.form.text.trim() }).then(res => {
this.form.result = res.score;
})
} else {
alert('未识别到主体!');
}
} else if (this.form.technique == 4) {
if (this.form.text.trim() != '') {
emotionNews({ data: this.form.text.trim() }).then(res => {
this.form.result = res.score;
})
} else {
alert('未识别到主体!');
}
} else {
alert("敬请期待");
}
}
},
mounted() {
this.dialogVisible = this.$props.visible;
this.form.technique = this.$props.type;
}
}
</script>
<style lang="scss">
.el-dialog {
padding: 20px;
box-sizing: border-box;
background-color: transparent;
background-image: url(../../../assets/img/home/dialog.png);
background-size: 100% 100%;
background-repeat: no-repeat;
.el-input__inner {
border: 1px solid #535353 !important;
box-shadow: 0 0 10px #535353;
}
.el-dialog__header {
text-align: center;
}
.el-textarea__inner {
color: white;
border: 1px solid #535353 !important;
box-shadow: 0 0 10px #535353;
background-color: transparent;
}
}
</style>
\ No newline at end of file
...@@ -158,16 +158,19 @@ ...@@ -158,16 +158,19 @@
background: linear-gradient( to bottom,rgb(92 204 211),rgb(102, 166, 255),rgb(92 204 211)); background: linear-gradient( to bottom,rgb(92 204 211),rgb(102, 166, 255),rgb(92 204 211));
font-weight: 900; font-weight: 900;
letter-spacing: 2; letter-spacing: 2;
">开始试用</el-button> " @click="startUsing">开始试用</el-button>
</div> </div>
</div> </div>
</div> </div>
</transition> </transition>
<NewTechniqueDialog v-if="visible" :visible="visible" :type="obj_xq.type" @handleCancel="closeDialog"></NewTechniqueDialog>
</div> </div>
</template> </template>
<script> <script>
import VanillaTilt from "vanilla-tilt"; import VanillaTilt from "vanilla-tilt";
import "animate.css"; import "animate.css";
import NewTechniqueDialog from '../xjssy/components/newTechniqueDialog.vue';
export default { export default {
data() { data() {
return { return {
...@@ -250,8 +253,12 @@ export default { ...@@ -250,8 +253,12 @@ export default {
}, },
], ],
obj_xq: {}, obj_xq: {},
visible: false
}; };
}, },
components: {
'NewTechniqueDialog': NewTechniqueDialog
},
// props: { // props: {
// clientDetails: { // clientDetails: {
// type: Object, // type: Object,
...@@ -267,6 +274,12 @@ export default { ...@@ -267,6 +274,12 @@ export default {
} }
this.xqIsShow = !this.xqIsShow; this.xqIsShow = !this.xqIsShow;
}, },
closeDialog() {
this.visible = false;
},
startUsing() {
this.visible = true;
}
}, },
mounted() { mounted() {
let _this = this; let _this = this;
...@@ -289,6 +302,7 @@ export default { ...@@ -289,6 +302,7 @@ export default {
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
.left-divs { .left-divs {
width: 20%; width: 20%;
height: 100%; height: 100%;
...@@ -404,7 +418,7 @@ export default { ...@@ -404,7 +418,7 @@ export default {
padding: 2%; padding: 2%;
border: 1px solid #3a5f94c9; border: 1px solid #3a5f94c9;
border-radius: 0px 50px; border-radius: 0px 50px;
.el-divider--horizontal { .el-divider--horizontal {
margin: 20px 6px; margin: 20px 6px;
......
...@@ -111,6 +111,12 @@ module.exports = { ...@@ -111,6 +111,12 @@ module.exports = {
pathRewrite: { pathRewrite: {
'^/api_wmts/': '/' '^/api_wmts/': '/'
} }
},
'/api_technique_emotion/': {
target: 'http://192.168.168.212:7550',
pathRewrite: {
'^/api_technique_emotion/': '/'
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment