Commit 740e8b9e authored by 高飞's avatar 高飞

修改文献数据

parent a5858bbc
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}`);
}
...@@ -22,6 +22,7 @@ div::-webkit-scrollbar-thumb:hover { ...@@ -22,6 +22,7 @@ div::-webkit-scrollbar-thumb:hover {
div::-webkit-scrollbar-corner { div::-webkit-scrollbar-corner {
background: #a1dcf7; background: #a1dcf7;
} }
/* input 边框*/ /* input 边框*/
.public-input>.el-input__inner, .public-input>.el-input__inner,
.public-input>.el-input--suffix>.el-input__inner { .public-input>.el-input--suffix>.el-input__inner {
...@@ -41,7 +42,8 @@ div::-webkit-scrollbar-corner { ...@@ -41,7 +42,8 @@ div::-webkit-scrollbar-corner {
box-shadow: 0 0 10px #3a5f94c9; box-shadow: 0 0 10px #3a5f94c9;
border: 1px solid #3a5f94c9 !important; border: 1px solid #3a5f94c9 !important;
} }
.el-table__body tr:hover > td{
.el-table__body tr:hover>td {
background-color: #89898954 !important; background-color: #89898954 !important;
} }
...@@ -87,32 +89,42 @@ div::-webkit-scrollbar-corner { ...@@ -87,32 +89,42 @@ div::-webkit-scrollbar-corner {
background-color: #17354c; background-color: #17354c;
background-image: url("../../assets/img/dfzy/new/6.png"); background-image: url("../../assets/img/dfzy/new/6.png");
background-size: 100% 100%; background-size: 100% 100%;
.popper__arrow::after{
.popper__arrow::after {
border-bottom-color: #17354c !important; border-bottom-color: #17354c !important;
} }
.el-tree{
.el-tree {
background: #ffffff00; background: #ffffff00;
color: #ffffff; color: #ffffff;
} }
.tree-select__option.el-select-dropdown__item{
.tree-select__option.el-select-dropdown__item {
background-color: #fff0; background-color: #fff0;
} }
.el-tree-node__content:hover{
.el-tree-node__content:hover {
background-image: linear-gradient(to right, #17344b, #2f91af, #17354c); background-image: linear-gradient(to right, #17344b, #2f91af, #17354c);
} }
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content{
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
background-image: linear-gradient(to right, #17344b, #2f91af, #17354c); background-image: linear-gradient(to right, #17344b, #2f91af, #17354c);
} }
.tree-select__tree.tree-select__tree--radio .el-tree-node.is-current > .el-tree-node__content{
.tree-select__tree.tree-select__tree--radio .el-tree-node.is-current>.el-tree-node__content {
color: orange; color: orange;
} }
.el-tree-node:focus > .el-tree-node__content{
.el-tree-node:focus>.el-tree-node__content {
background-color: #ffffff00; background-color: #ffffff00;
} }
.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
background-image: linear-gradient(to right, #17344b, #2f91af, #17354c); background-image: linear-gradient(to right, #17344b, #2f91af, #17354c);
} }
.el-select-dropdown__item{
.el-select-dropdown__item {
color: #ffffff; color: #ffffff;
} }
} }
...@@ -121,39 +133,49 @@ div::-webkit-scrollbar-corner { ...@@ -121,39 +133,49 @@ div::-webkit-scrollbar-corner {
.page-div { .page-div {
width: 100%; width: 100%;
height: 50px; height: 50px;
.el-input--suffix .el-input__inner{
.el-input--suffix .el-input__inner {
height: 30px; height: 30px;
} }
.el-pagination { .el-pagination {
margin-top: 9px; margin-top: 9px;
text-align: right; text-align: right;
.el-pagination__jump { .el-pagination__jump {
color: white; color: white;
} }
.el-pagination__total { .el-pagination__total {
color: white; color: white;
} }
} }
.myPagination.is-background .el-pager li:not(.disabled).active { .myPagination.is-background .el-pager li:not(.disabled).active {
color: #fff; color: #fff;
border: 1px solid #146a80; border: 1px solid #146a80;
box-shadow: 0 0 10px #1b6097; box-shadow: 0 0 10px #1b6097;
background-color: #1d2d46; background-color: #1d2d46;
} }
.el-pagination span:not([class*=suffix]), .el-pagination button{
.el-pagination span:not([class*=suffix]),
.el-pagination button {
font-size: 12px; font-size: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
} }
.el-pager li{
.el-pager li {
font-size: 12px; font-size: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
} }
.el-pagination__editor.el-input .el-input__inner{
.el-pagination__editor.el-input .el-input__inner {
height: 24px; height: 24px;
} }
.el-input__inner{
.el-input__inner {
height: 24px; height: 24px;
} }
} }
...@@ -238,8 +260,29 @@ div::-webkit-scrollbar-corner { ...@@ -238,8 +260,29 @@ div::-webkit-scrollbar-corner {
} }
} }
.bk-xxzp-animation:hover {
&::before {
top: 17%;
left: 9.3%;
right: 2.5%;
bottom: 24%;
/* border:2px solid #ff9933; */
border:none;
}
&::after {
top: 17%;
left: 9.3%;
right: 2.5%;
bottom: 24%;
/* border:2px solid #ff9933; */
border:none;
}
}
.bk-xjs-animation { .bk-xjs-animation {
position: relative; position: relative;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
...@@ -266,16 +309,20 @@ div::-webkit-scrollbar-corner { ...@@ -266,16 +309,20 @@ div::-webkit-scrollbar-corner {
pointer-events: none; pointer-events: none;
} }
} }
.bk-xjs-animation:hover{
.bk-xjs-animation:hover {
&::before { &::before {
border-color: #ff9933; border-color: #ff9933;
} }
&::after { &::after {
border-color:#ff9933; border-color: #ff9933;
} }
} }
.bk-bmdx-animation { .bk-bmdx-animation {
position: relative; position: relative;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
...@@ -302,22 +349,26 @@ div::-webkit-scrollbar-corner { ...@@ -302,22 +349,26 @@ div::-webkit-scrollbar-corner {
pointer-events: none; pointer-events: none;
} }
} }
.bk-bmdx-animation:hover{
.bk-bmdx-animation:hover {
&::before { &::before {
left: 6.4%; left: 6.4%;
right: 4.8%; right: 4.8%;
bottom: 15.6%; bottom: 15.6%;
border-color: #03fe37; border-color: #03fe37;
} }
&::after { &::after {
left: 6.4%; left: 6.4%;
right: 4.8%; right: 4.8%;
bottom: 15.6%; bottom: 15.6%;
border-color:#03fe37; border-color: #03fe37;
} }
} }
.bk-ddkz-animation { .bk-ddkz-animation {
position: relative; position: relative;
&::before { &::before {
content: ""; content: "";
position: absolute; position: absolute;
...@@ -344,11 +395,13 @@ div::-webkit-scrollbar-corner { ...@@ -344,11 +395,13 @@ div::-webkit-scrollbar-corner {
pointer-events: none; pointer-events: none;
} }
} }
.bk-ddkz-animation:hover{
.bk-ddkz-animation:hover {
&::before { &::before {
border-color: #ff9933; border-color: #ff9933;
} }
&::after { &::after {
border-color:#ff9933; border-color: #ff9933;
} }
} }
\ No newline at end of file
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
</div> </div>
</div> </div>
</div> </div>
<div style="width: 300px; float: left; margin-left: 20px"> <div style="width: 280px; float: left; margin-left: 20px">
<div class="xgnr-span" style="margin-top: 0px"> <div class="xgnr-span" style="margin-top: 0px">
<span>相关人物</span> <span>相关人物</span>
</div> </div>
......
This diff is collapsed.
...@@ -418,13 +418,13 @@ export default { ...@@ -418,13 +418,13 @@ export default {
current_page_qw: 1, current_page_qw: 1,
format_files: "", format_files: "",
get_files: [], get_files: [],
type_folder: "fzjc", //文件夹名称 type_folder: "DocumentPDF", //文件夹名称
wjfx_qh: true, wjfx_qh: true,
gjc_input: "", gjc_input: "",
tab_jsfx: true, tab_jsfx: true,
znjsfx_name: "", znjsfx_name: "",
clientDetails_type: "4", //默认查询id为21的方案预案 clientDetails_type: "1", //默认查询id为21的方案预案
module_name: "辅助决策文档", module_name: "战法策略文档",
tab_actives: "-1", //表格切换 tab_actives: "-1", //表格切换
}; };
}, },
...@@ -564,8 +564,8 @@ export default { ...@@ -564,8 +564,8 @@ export default {
_this.title = "正在播放视频---" + row.name; _this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true; _this.centerDialogVisible_video = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + "/" + row.file.uuid; path_srt = path_srt + row.file.uuid;
_this.video_src = path_srt; _this.video_src = path_srt;
if (document.getElementById("video").currentTime != 0) if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0; document.getElementById("video").currentTime = 0;
...@@ -574,39 +574,39 @@ export default { ...@@ -574,39 +574,39 @@ export default {
_this.title_sound = "正在播放音频---" + row.name; _this.title_sound = "正在播放音频---" + row.name;
_this.centerDialogVisible_sound = true; _this.centerDialogVisible_sound = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + "/" + row.file.uuid; path_srt = path_srt + _this.type_folder + "/" + row.file.uuid;
_this.sound_src = path_srt; _this.sound_src = path_srt;
if (document.getElementById("sound_id").currentTime != 0) if (document.getElementById("sound_id").currentTime != 0)
document.getElementById("sound_id").currentTime = 0; document.getElementById("sound_id").currentTime = 0;
}, 500); }, 500);
} else { } else {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + _this.type_folder + "/" + row.file.uuid; // "api/rest/document/pdf/" + _this.type_folder + "/" + row.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
} }
}, },
//table_全文搜索预览 //table_全文搜索预览
handleView_qwss(item) { handleView_qwss(item) {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + // "api/rest/document/pdf/" +
this.type_folder + // this.type_folder +
"/" + // "/" +
item.fileInfo.file.uuid; // item.fileInfo.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${item.fileInfo.file.uuid}`);
}, },
//table数据下载 //table数据下载
handleDownload(index, row) { handleDownload(index, row) {
let path_srt = let path_srt =
"api/rest/document/download/" + this.type_folder + "/" + row.file.uuid; "api/rest/file/download/Document/DocumentPDF/" + row.file.uuid;
download(path_srt, row.file.name); download(path_srt, row.file.name);
}, },
//table_全文搜索下载 //table_全文搜索下载
handleDownload_qwss(item) { handleDownload_qwss(item) {
let path_srt = let path_srt =
"api/rest/document/download/" + "api/rest/file/download/Document/DocumentPDF/" +
this.type_folder +
"/" +
item.fileInfo.file.uuid; item.fileInfo.file.uuid;
download(path_srt, item.fileInfo.file.name); download(path_srt, item.fileInfo.file.name);
}, },
......
This diff is collapsed.
...@@ -575,6 +575,7 @@ import { ...@@ -575,6 +575,7 @@ import {
import { uuid } from "../../util/data_util"; import { uuid } from "../../util/data_util";
import VanillaTilt from "vanilla-tilt"; import VanillaTilt from "vanilla-tilt";
import "animate.css"; import "animate.css";
import { queryDoc, searchFiles } from '../../api/zfclk/wxgl';
export default { export default {
data() { data() {
return { return {
...@@ -624,13 +625,13 @@ export default { ...@@ -624,13 +625,13 @@ export default {
current_page_qw: 1, current_page_qw: 1,
format_files: "", format_files: "",
get_files: [], get_files: [],
type_folder: "fzjc", //文件夹名称 type_folder: "DocumentPDF", //文件夹名称
wjfx_qh: true, wjfx_qh: true,
gjc_input: "", gjc_input: "",
tab_jsfx: true, tab_jsfx: true,
znjsfx_name: "", znjsfx_name: "",
clientDetails_type: "4", //默认查询id为21的方案预案 clientDetails_type: "2", //默认查询id为21的方案预案
module_name: "辅助决策文档", module_name: "信息制品文档",
tab_actives: "-1", //表格切换 tab_actives: "-1", //表格切换
}; };
}, },
...@@ -689,14 +690,7 @@ export default { ...@@ -689,14 +690,7 @@ export default {
// startLoading(); // startLoading();
_this.tableData = []; _this.tableData = [];
_this.total = 0; _this.total = 0;
post( queryDoc(pageNum, _this.pageSize, _this.paramData).then((data) => {
"api/rest/document/queryDoc?pageNum=" +
pageNum +
"&pageSize=" +
_this.pageSize,
_this.paramData
)
.then((data) => {
setTimeout(() => { setTimeout(() => {
if (data.list.length != 0) { if (data.list.length != 0) {
_this.tableData = data.list; _this.tableData = data.list;
...@@ -737,14 +731,7 @@ export default { ...@@ -737,14 +731,7 @@ export default {
startLoading(); startLoading();
_this.get_files = []; _this.get_files = [];
_this.totals_qw = 0; _this.totals_qw = 0;
post( searchFiles(pageNum, _this.pageSize_qw, paramDatas).then((data) => {
"api/rest/fulltext/searchFiles?pageNum=" +
pageNum +
"&pageSize=" +
_this.pageSize_qw,
paramDatas
)
.then((data) => {
if (data.list.length != 0) { if (data.list.length != 0) {
data.list.forEach((item, index) => { data.list.forEach((item, index) => {
data.list[index].create_time = new Date( data.list[index].create_time = new Date(
...@@ -784,8 +771,8 @@ export default { ...@@ -784,8 +771,8 @@ export default {
_this.title = "正在播放视频---" + row.name; _this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true; _this.centerDialogVisible_video = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + "/" + row.file.uuid; path_srt = path_srt + row.file.uuid;
_this.video_src = path_srt; _this.video_src = path_srt;
if (document.getElementById("video").currentTime != 0) if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0; document.getElementById("video").currentTime = 0;
...@@ -794,39 +781,39 @@ export default { ...@@ -794,39 +781,39 @@ export default {
_this.title_sound = "正在播放音频---" + row.name; _this.title_sound = "正在播放音频---" + row.name;
_this.centerDialogVisible_sound = true; _this.centerDialogVisible_sound = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + "/" + row.file.uuid; path_srt = path_srt + _this.type_folder + "/" + row.file.uuid;
_this.sound_src = path_srt; _this.sound_src = path_srt;
if (document.getElementById("sound_id").currentTime != 0) if (document.getElementById("sound_id").currentTime != 0)
document.getElementById("sound_id").currentTime = 0; document.getElementById("sound_id").currentTime = 0;
}, 500); }, 500);
} else { } else {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + _this.type_folder + "/" + row.file.uuid; // "api/rest/document/pdf/" + _this.type_folder + "/" + row.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
} }
}, },
//table_全文搜索预览 //table_全文搜索预览
handleView_qwss(item) { handleView_qwss(item) {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + // "api/rest/document/pdf/" +
this.type_folder + // this.type_folder +
"/" + // "/" +
item.fileInfo.file.uuid; // item.fileInfo.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${item.fileInfo.file.uuid}`);
}, },
//table数据下载 //table数据下载
handleDownload(index, row) { handleDownload(index, row) {
let path_srt = let path_srt =
"api/rest/document/download/" + this.type_folder + "/" + row.file.uuid; "api/rest/file/download/Document/DocumentPDF/" + row.file.uuid;
download(path_srt, row.file.name); download(path_srt, row.file.name);
}, },
//table_全文搜索下载 //table_全文搜索下载
handleDownload_qwss(item) { handleDownload_qwss(item) {
let path_srt = let path_srt =
"api/rest/document/download/" + "api/rest/file/download/Document/DocumentPDF/" +
this.type_folder +
"/" +
item.fileInfo.file.uuid; item.fileInfo.file.uuid;
download(path_srt, item.fileInfo.file.name); download(path_srt, item.fileInfo.file.name);
}, },
......
...@@ -231,7 +231,6 @@ export default { ...@@ -231,7 +231,6 @@ export default {
}) })
} }
}); });
debugger
this.manager_module = this.$store.state.navList[0].children.filter( this.manager_module = this.$store.state.navList[0].children.filter(
(e) => e.meta.type == "1" (e) => e.meta.type == "1"
); );
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
modules: { modules: {
leftModule: [ leftModule: [
{ id: 1, title: '目标对象库', eg: 'Target Object Library' }, { id: 1, title: '目标对象库', eg: 'Target Object Library' },
{ id: 2, title: '法策略库', eg: 'Method Strategy Library' }, { id: 2, title: '法策略库', eg: 'Method Strategy Library' },
{ id: 3, title: '信息制品库', eg: 'Infomation product Library' }, { id: 3, title: '信息制品库', eg: 'Infomation product Library' },
], ],
rightModule: [ rightModule: [
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
/> />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane> <!-- <el-tab-pane>
<span slot="label" <span slot="label"
><i class="el-icon-document-copy"></i>文献库管理</span ><i class="el-icon-document-copy"></i>文献库管理</span
> >
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
ref="mychild_wx_data" ref="mychild_wx_data"
/> />
</div> </div>
</el-tab-pane> </el-tab-pane> -->
</el-tabs> </el-tabs>
<el-dialog <el-dialog
title="新增模板名称" title="新增模板名称"
......
This diff is collapsed.
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
<component :is="currentRole_wx_data" :clientDetails="clientDetails_wx_data" ref="mychild_wx_data" /> <component :is="currentRole_wx_data" :clientDetails="clientDetails_wx_data" ref="mychild_wx_data" />
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane> <!-- <el-tab-pane>
<span slot="label"><i class="el-icon-phone-outline"></i>决策支持管理</span> <span slot="label"><i class="el-icon-phone-outline"></i>决策支持管理</span>
<div style="width:100%;height:100%;"> <div style="width:100%;height:100%;">
<component :is="fzjcgl_jczc" :clientDetails="jczc_data" ref="jczc" /> <component :is="fzjcgl_jczc" :clientDetails="jczc_data" ref="jczc" />
</div> </div>
</el-tab-pane> </el-tab-pane> -->
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
clientDetails_wx_data: {}, clientDetails_wx_data: {},
editableTabsValue: "0", editableTabsValue: "0",
jczc_data:{}, jczc_data:{},
fzjcgl_jczc:'fzjcgl_jczc' fzjcgl_jczc:'navs_wx'
}; };
}, },
methods: { methods: {
...@@ -38,9 +38,9 @@ export default { ...@@ -38,9 +38,9 @@ export default {
(_this.currentRole_wx_data = "navs_wx"), (_this.currentRole_wx_data = "navs_wx"),
setTimeout(() =>{ setTimeout(() =>{
_this.clientDetails_wx_data = { _this.clientDetails_wx_data = {
module_name: "辅助决策文档", module_name: "信息制品文档",
fl_type: 4, fl_type: 2,
type_folder: "fzjc", type_folder: "DocumentPDF",
}; };
},100); },100);
} }
......
...@@ -282,7 +282,6 @@ export default { ...@@ -282,7 +282,6 @@ export default {
if(item.uuid=='null'||item.uuid==''||item.uuid==undefined){ if(item.uuid=='null'||item.uuid==''||item.uuid==undefined){
arr_entity[index].uuid = Math.round(Math.random()*10000)+''; arr_entity[index].uuid = Math.round(Math.random()*10000)+'';
} }
console.log(arr_entity[index].uuid)
}); });
arr_nodes = this.arr_push( arr_nodes = this.arr_push(
arr_entity, arr_entity,
......
...@@ -889,7 +889,8 @@ export default { ...@@ -889,7 +889,8 @@ export default {
query_grxx() { query_grxx() {
this.form = JSON.parse(JSON.stringify(this.organization)); this.form = JSON.parse(JSON.stringify(this.organization));
// this.imageUrl = imgUrl + this.form.avatar; // this.imageUrl = imgUrl + this.form.avatar;
this.form.avatar==null?(this.imageUrl=''):this.query_avatar(this.form.avatar); // this.form.avatar==null?(this.imageUrl=''):this.query_avatar(this.form.avatar);
this.form.avatar==null?(this.imageUrl=''):(this.imageUrl = 'api/rest/file/viewPicture/AVATAR?objectName='+this.form.avatar);
if ( if (
this.wzmk_data.length > 0 && this.wzmk_data.length > 0 &&
JSON.stringify(this.form.tableProperty) != "{}" JSON.stringify(this.form.tableProperty) != "{}"
......
...@@ -514,11 +514,11 @@ export default { ...@@ -514,11 +514,11 @@ export default {
this.tree_data.push(a); this.tree_data.push(a);
}) })
.then((res) => { .then((res) => {
this.query_tree_jg1();
}) })
.catch((err) => { .catch((err) => {
this.$message.warning(err.message); this.$message.warning(err.message);
}); });
this.query_tree_jg1();
}, },
query_tree_jg1() { query_tree_jg1() {
get("api/rest/mongo/organization/queryTree?module=" + "DFWW") get("api/rest/mongo/organization/queryTree?module=" + "DFWW")
......
...@@ -928,7 +928,8 @@ export default { ...@@ -928,7 +928,8 @@ export default {
if (data.records.length > 0) { if (data.records.length > 0) {
this.form = JSON.parse(JSON.stringify(data.records[0])); this.form = JSON.parse(JSON.stringify(data.records[0]));
// this.imageUrl = this.form.avatarUrl==null?'':this.form.avatarUrl; // this.imageUrl = this.form.avatarUrl==null?'':this.form.avatarUrl;
this.form.avatar==null?(this.imageUrl=''):this.query_avatar(this.form.avatar); // this.form.avatar==null?(this.imageUrl=''):this.query_avatar(this.form.avatar);
this.form.avatar==null?(this.imageUrl=''):(this.imageUrl = 'api/rest/file/viewPicture/AVATAR?objectName='+this.form.avatar);
if ( if (
this.wzmk_data.length > 0 && this.wzmk_data.length > 0 &&
JSON.stringify(this.form.tableProperty) != "{}" JSON.stringify(this.form.tableProperty) != "{}"
...@@ -959,11 +960,14 @@ export default { ...@@ -959,11 +960,14 @@ export default {
if (this.wzmk_data.length > 0) { if (this.wzmk_data.length > 0) {
this.wzmk_data.forEach((item) => { this.wzmk_data.forEach((item) => {
if (item.type == 3) { if (item.type == 3) {
(this.clientDetails_rw = { this.currentRole_rw = "navs_rwk";
module_id: this.form.rwbh.value, setTimeout(() => {
types: "1", this.clientDetails_rw = {
peopleOrOrganization:'character', module_id: this.form.rwbh.value,
}); types: "1",
peopleOrOrganization: "character",
};
}, 500);
} }
}); });
} }
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
id:this.this_data.id, id:this.this_data.id,
label: this.name_edit.trim(), label: this.name_edit.trim(),
}; };
post("api/rest/document/updateDocumentTreeItem", paramDatas) post("api/rest/3z/document/updateDocumentTreeItem", paramDatas)
.then((data) => { .then((data) => {
if (data == 1) { if (data == 1) {
this.$message({ this.$message({
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
parentCode: this.this_node.data.code, parentCode: this.this_node.data.code,
createId:this.$store.state.userInfo.account, createId:this.$store.state.userInfo.account,
}; };
post("api/rest/document/addDocumentTreeItem", paramDatas) post("api/rest/3z/document/addDocumentTreeItem", paramDatas)
.then((data) => { .then((data) => {
if (data == 1) { if (data == 1) {
this.$message({ this.$message({
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
) )
.then(() => { .then(() => {
delete_util( delete_util(
"api/rest/document/removeDocumentTreeItem/" + node.data.id "api/rest/3z/document/removeDocumentTreeItem/" + node.data.id
) )
.then((data) => { .then((data) => {
if (data == 1) { if (data == 1) {
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
//查询tree数据 //查询tree数据
query_tree() { query_tree() {
this.tree_data = []; this.tree_data = [];
get("api/rest/document/queryDocumentTree?module="+this.module_name) get("api/rest/3z/document/queryDocumentTree?module="+this.module_name)
.then((res) => { .then((res) => {
console.log(1122); console.log(1122);
this.tree_data = [{ this.tree_data = [{
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
</el-switch> </el-switch>
</div> </div>
<div class="button-discuss" @click="searchs">搜索</div> <div class="button-discuss" @click="searchs">搜索</div>
<el-tooltip class="item" effect="light" content="文件分析" placement="top-start"> <!-- <el-tooltip class="item" effect="light" content="文件分析" placement="top-start">
<el-button type="info" icon="el-icon-data-line" size="small" <el-button type="info" icon="el-icon-data-line" size="small"
style="margin-left:50px;pointer-events: none;" circle></el-button> style="margin-left:50px;pointer-events: none;" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="light" content="智能检索分析" placement="top-start"> <el-tooltip class="item" effect="light" content="智能检索分析" placement="top-start">
<el-button type="primary" icon="el-icon-data-board" size="small" @click="znjsfx_cli()" <el-button type="primary" icon="el-icon-data-board" size="small" @click="znjsfx_cli()"
circle></el-button> circle></el-button>
</el-tooltip> </el-tooltip> -->
<div class="button-discuss1" @click="handleAdd()">新增</div> <div class="button-discuss1" @click="handleAdd()">新增</div>
</div> </div>
<div class="bottom-div"> <div class="bottom-div">
...@@ -279,7 +279,7 @@ import { ...@@ -279,7 +279,7 @@ import {
lastIndexOf, lastIndexOf,
get, get,
post, post,
fileUpload, fileUpload_PUT,
delete_util, delete_util,
startLoading, startLoading,
endLoading, endLoading,
...@@ -412,7 +412,7 @@ export default { ...@@ -412,7 +412,7 @@ export default {
_this.tableData = []; _this.tableData = [];
_this.total = 0; _this.total = 0;
post( post(
"api/rest/document/queryDoc?pageNum=" + "api/rest/3z/document/queryDoc?pageNum=" +
pageNum + pageNum +
"&pageSize=" + "&pageSize=" +
_this.pageSize, _this.pageSize,
...@@ -457,7 +457,7 @@ export default { ...@@ -457,7 +457,7 @@ export default {
_this.get_files = []; _this.get_files = [];
_this.totals_qw = 0; _this.totals_qw = 0;
post( post(
"api/rest/fulltext/searchFiles?pageNum=" + "api/rest/elastic/searchFiles?pageNum=" +
pageNum + pageNum +
"&pageSize=" + "&pageSize=" +
_this.pageSize_qw, _this.pageSize_qw,
...@@ -504,8 +504,8 @@ export default { ...@@ -504,8 +504,8 @@ export default {
_this.title = "正在播放视频---" + row.name; _this.title = "正在播放视频---" + row.name;
_this.centerDialogVisible_video = true; _this.centerDialogVisible_video = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + '/' + row.file.uuid; path_srt = path_srt + row.file.uuid;
_this.video_src = path_srt; _this.video_src = path_srt;
if (document.getElementById("video").currentTime != 0) if (document.getElementById("video").currentTime != 0)
document.getElementById("video").currentTime = 0; document.getElementById("video").currentTime = 0;
...@@ -514,40 +514,42 @@ export default { ...@@ -514,40 +514,42 @@ export default {
_this.title_sound = "正在播放音频---" + row.name; _this.title_sound = "正在播放音频---" + row.name;
_this.centerDialogVisible_sound = true; _this.centerDialogVisible_sound = true;
setTimeout(function () { setTimeout(function () {
let path_srt = "api/rest/document/download/"; let path_srt = "api/rest/file/download/Document/";
path_srt = path_srt + _this.type_folder + '/' + row.file.uuid; path_srt = path_srt + row.file.uuid;
_this.sound_src = path_srt; _this.sound_src = path_srt;
if (document.getElementById("sound_id").currentTime != 0) if (document.getElementById("sound_id").currentTime != 0)
document.getElementById("sound_id").currentTime = 0; document.getElementById("sound_id").currentTime = 0;
}, 500); }, 500);
} else { } else {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + // "api/rest/3z/document/pdf/" +
_this.type_folder + // _this.type_folder +
"/" + // "/" +
row.file.uuid; // row.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${row.file.uuid}`);
} }
}, },
//table_全文搜索预览 //table_全文搜索预览
handleView_qwss(item) { handleView_qwss(item) {
let path_srt = // let path_srt =
"api/rest/document/pdf/" + // "api/rest/3z/document/pdf/" +
this.type_folder + // this.type_folder +
"/" + // "/" +
item.fileInfo.file.uuid; // item.fileInfo.file.uuid;
window.open(path_srt); // window.open(path_srt);
window.open(`api/rest/file/pdf/DocumentPDF?objectName=${item.fileInfo.file.uuid}`);
}, },
//table数据下载 //table数据下载
handleDownload(index, row) { handleDownload(index, row) {
let path_srt = let path_srt =
"api/rest/document/download/" + this.type_folder + "/" + row.file.uuid; "api/rest/3z/document/download/" + this.type_folder + "/" + row.file.uuid;
download(path_srt, row.file.name); download(path_srt, row.file.name);
}, },
//table_全文搜索下载 //table_全文搜索下载
handleDownload_qwss(item) { handleDownload_qwss(item) {
let path_srt = let path_srt =
"api/rest/document/download/" + "api/rest/3z/document/download/" +
this.type_folder + this.type_folder +
"/" + "/" +
item.fileInfo.file.uuid; item.fileInfo.file.uuid;
...@@ -564,9 +566,9 @@ export default { ...@@ -564,9 +566,9 @@ export default {
}; };
_this.edit_ids = row.id; _this.edit_ids = row.id;
_this.centerDialogVisible_edit = true; _this.centerDialogVisible_edit = true;
setTimeout(function () { // setTimeout(function () {
_this.$refs.forms1.resetFields(); // _this.$refs.forms1.resetFields();
}, 200) // }, 200)
}, },
//table数据删除 //table数据删除
handleDelete(index, row) { handleDelete(index, row) {
...@@ -579,7 +581,7 @@ export default { ...@@ -579,7 +581,7 @@ export default {
}) })
.then(() => { .then(() => {
delete_util( delete_util(
"api/rest/document/delDoc/" + "api/rest/3z/document/delDoc/" +
ids + ids +
"?folder=" + "?folder=" +
_this.type_folder + _this.type_folder +
...@@ -636,7 +638,7 @@ export default { ...@@ -636,7 +638,7 @@ export default {
}; };
this.$refs['forms1'].validate((valid) => { this.$refs['forms1'].validate((valid) => {
if (valid) { if (valid) {
post("api/rest/document/updDoc", params).then((data) => { post("api/rest/3z/document/updDoc", params).then((data) => {
if (data == 1) { if (data == 1) {
this.$message({ this.$message({
type: "success", type: "success",
...@@ -704,7 +706,7 @@ export default { ...@@ -704,7 +706,7 @@ export default {
fd.append("info", JSON.stringify(fileInfo)); fd.append("info", JSON.stringify(fileInfo));
fd.append("folder", this.type_folder); fd.append("folder", this.type_folder);
fd.append("file", this.form_add.fileList[0].raw); fd.append("file", this.form_add.fileList[0].raw);
fileUpload("api/rest/document/upload", fd).then((data) => { fileUpload_PUT("api/rest/3z/document/upload", fd).then((data) => {
this.$message({ this.$message({
type: "success", type: "success",
message: "文件上传成功!", message: "文件上传成功!",
...@@ -770,7 +772,7 @@ export default { ...@@ -770,7 +772,7 @@ export default {
_this.tableData_znjsfx = []; _this.tableData_znjsfx = [];
_this.total_znjsfx = 0; _this.total_znjsfx = 0;
post( post(
"api/rest/document/queryDoc?pageNum=" + "api/rest/3z/document/queryDoc?pageNum=" +
pageNum + pageNum +
"&pageSize=" + "&pageSize=" +
_this.pageSize, _this.pageSize,
......
...@@ -86,7 +86,7 @@ module.exports = { ...@@ -86,7 +86,7 @@ module.exports = {
//后台代理 //后台代理
proxy: { proxy: {
'/api/': { '/api/': {
target: 'http://192.168.168.110:8081', target: 'http://192.168.168.106:8081',
ws: true, ws: true,
secure: false, secure: false,
changeOrigin: true, changeOrigin: true,
......
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