Commit 8023dd59 authored by 夏敏伟's avatar 夏敏伟

修改api

parent a34cd509
import { get, post, delete_util, fileUpload_PUT, addParam } from "../util/http_util";
const PREFIX_NEWTECHNIQUE = "http://192.168.168.117:8080/kg/input/news";
//热词
export const hotWord = data=>{
return post(`${PREFIX_NEWTECHNIQUE}hotWord`,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);
}
\ No newline at end of file
......@@ -29,8 +29,8 @@
<div class="card-content">
<div class="content-img">
<div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)"
@contextmenu.prevent.stop="showInfo(item1)" />
<img :src="item1.coverUrl" alt=""
@click="viewLiterature(item1)" @contextmenu.prevent.stop="showInfo(item1)" />
</div>
</div>
<div class="content-list">
......@@ -65,8 +65,8 @@
<div class="card-content">
<div class="content-img">
<div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)"
@dblclick="showInfo(item1)" />
<img :src="item1.coverUrl" alt=""
@click="viewLiterature(item1)" @dblclick="showInfo(item1)" />
</div>
</div>
<div class="content-list">
......@@ -101,8 +101,8 @@
<div class="card-content">
<div class="content-img">
<div v-for="(item1, index1) in item.img">
<img :src="LiteraturePictureUrl + item1.folder + '/' + item1.image" alt="" @click="viewLiterature(item1)"
@contextmenu.prevent.stop="showInfo(item1)" />
<img :src="item1.coverUrl" alt=""
@click="viewLiterature(item1)" @contextmenu.prevent.stop="showInfo(item1)" />
</div>
</div>
<div class="content-list">
......@@ -330,6 +330,7 @@
box-sizing: border-box;
overflow-y: auto;
color: white;
.search {
width: 100%;
height: 50px;
......@@ -1470,6 +1471,10 @@ import {
delete_util,
dateChangeFormat,
} 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 rightTitle from "../../assets/img/flfg/rightTitle.png";
import "animate.css";
......@@ -1628,26 +1633,18 @@ export default {
},
//根据文本信息查询文件
searchLiterature() {
post(
"api/rest/fulltext/searchLiterature?pageNum=" +
this.fulltextPagination.currentPage +
"&pageSize=" +
this.fulltextPagination.everySize +
"&module=法律法规",
this.input
)
.then((res) => {
res.list.forEach((item) => {
item.createTime = dateChangeFormat(
"YYYY-mm-dd HH:MM:SS",
item.createTime
);
item["name"] = item.id;
});
this.fulltextLiteratureList = res.list;
this.fulltextPagination.total = res.totals;
endLoading();
})
searchLiterature(this.fulltextPagination.currentPage, this.fulltextPagination.everySize, this.input).then((res) => {
res.list.forEach((item) => {
item.createTime = dateChangeFormat(
"YYYY-mm-dd HH:MM:SS",
item.createTime
);
item["name"] = item.id;
});
this.fulltextLiteratureList = res.list;
this.fulltextPagination.total = res.totals;
endLoading();
})
.catch((err) => {
endLoading();
this.$message.warning(err.message);
......@@ -1678,14 +1675,7 @@ export default {
},
//查询上传的文件
queryLiterature(pageNum, pageSize, title) {
get(
"api/rest/document/queryLiterature?module=法律法规&pageNum=" +
pageNum +
"&pageSize=" +
pageSize +
"&origin_name=" +
title
)
queryLiterature("法律法规", pageNum, pageSize, title)
.then((res) => {
this.literatureList = res.list;
this.total = res.totals;
......@@ -1703,23 +1693,13 @@ export default {
},
//以pdf形式预览
viewLiterature(item) {
window.open(
"api/rest/document/viewLiterature/" + item.folder + "/" + item.name
);
previewPdf('LiteraturePDF', item.name);
},
queryLiteratureKinds(pageNum, pageSize, type) {
get(
"api/rest/document/queryLiterature?module=法律法规&pageNum=" +
pageNum +
"&pageSize=" +
pageSize +
"&folder=" +
type
)
.then((res) => {
this.literatureListKinds = res.list;
this.totalKinds = res.totals;
})
queryLiterature("法律法规", pageNum, pageSize, null, type).then((res) => {
this.literatureListKinds = res.list;
this.totalKinds = res.totals;
})
.catch((err) => {
this.$message.warning(err.message);
});
......@@ -1736,7 +1716,7 @@ export default {
showInfo(item) {
this.xgtj_news_data = [];
this.xgtj_news(item.id);
get("api/rest/fulltext/queryLiteratureById?id=" + item.name)
queryLiteratureById(item.name)
.then((res) => {
this.flag = 4;
this.pickObj = res;
......@@ -1747,7 +1727,7 @@ export default {
});
},
xgtj_news(id) {
post("api/rest/fulltext/queryRecommendLiterature?id=" + id)
queryRecommendLiterature(id)
.then((res) => {
if (res.length > 0) {
this.xgtj_news_data = res;
......@@ -1919,7 +1899,7 @@ export default {
obj["subject"] = this.pickItem.address;
obj["relation"] = this.personType;
obj["objectType"] = "文献";
post(`api/rest/resource/addRelatedInfo`, obj)
addRelatedInfo(obj)
.then((res) => {
if (res == 1) {
this.$message.success("关联人员成功!");
......@@ -1948,7 +1928,7 @@ export default {
obj["subject"] = this.pickItem.address;
obj["relation"] = this.organizationType;
obj["objectType"] = "文献";
post(`api/rest/resource/addRelatedInfo`, obj)
addRelatedInfo(obj)
.then((res) => {
if (res == 1) {
this.$message.success("关联机构成功!");
......@@ -1986,10 +1966,7 @@ export default {
//确定新增标签
defineAddTag() {
let labels = this.dynamicTags;
post(
"api/rest/document/addLiteratureLabel?id=" + this.literatureObj.id,
labels
)
addLiteratureLabel(this.literatureObj.id, labels)
.then((res) => {
if (res == 1) {
this.$message.success("添加标签成功!");
......@@ -2009,10 +1986,7 @@ export default {
//收藏
//查询收藏目录
searchCollectionFolder() {
get(
"api/rest/resource/queryCollectionFolder?collector=" +
this.userInfo.account
).then((res) => {
queryCollectionFolder(this.userInfo.account).then((res) => {
this.collectionFolder = res;
});
},
......@@ -2032,7 +2006,7 @@ export default {
//选择收藏夹完成上传
defineAddCollection() {
if (this.collectionData.folderId != undefined) {
post("api/rest/resource/addCollection", this.collectionData).then(
addCollection(this.collectionData).then(
(res) => {
if (res == 1) {
this.$message.success("收藏成功!");
......@@ -2052,7 +2026,7 @@ export default {
//新增收藏夹名称
addCollectionFolder() {
if (this.collectionName != "" && this.collectionName != null) {
post("api/rest/resource/addCollectionFolder", {
addCollectionFolder({
name: this.collectionName,
collector: this.userInfo.account,
})
......@@ -2073,7 +2047,7 @@ export default {
},
//删除收藏夹目录
delectCollectionFolder(id) {
delete_util("api/rest/resource/removeCollectionFolder?folderId=" + id)
removeCollectionFolder(id)
.then((res) => {
if (res == 1) {
this.$message.success("删除成功!");
......@@ -2121,7 +2095,7 @@ export default {
//多板块文献资料查询
//所有版块id集合
let ids = [];
get("api/rest/document/queryLiteratureFolder?module=法律法规")
queryLiteratureFolder("法律法规")
.then((res) => {
this.moduleList = res;
this.treeData = [
......@@ -2165,7 +2139,7 @@ export default {
});
})
.then(() => {
post("api/rest/document/multiQueryLiterature?module=" + "法律法规", ids)
multiQueryLiterature("法律法规",false, ids)
.then((res) => {
this.viewData = res;
//国际法
......@@ -2191,10 +2165,7 @@ export default {
.catch((err) => { });
//多板块文献资料图片查询
post(
"api/rest/document/multiQueryLiterature?showPic=true&module=法律法规",
ids
)
multiQueryLiterature("法律法规",true, ids)
.then((res) => {
//三战业务理论
this.internationalLaw[0].img = res[1];
......
......@@ -413,6 +413,7 @@ body,
<script>
import { get, post } from '../../util/http_util';
import { queryLiterature, previewPdf } from "../../api/xxxl/llxx"
export default {
name: 'flfgKinds',
data() {
......@@ -430,7 +431,7 @@ export default {
this.selectPane = tab.name;
},
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.total = res.totals;
});
......@@ -444,7 +445,7 @@ export default {
},
//以pdf形式预览
viewLiterature(item) {
window.open('api/rest/document/viewLiterature/' + item.folder + '/' + item.name);
previewPdf('LiteraturePDF', item.name);
},
//返回分类缩写
returnType(type) {
......
......@@ -2,32 +2,15 @@
<div id="znfx">
<div v-show="wjfx_qh">
<div class="top-div">
<el-input
v-model="wd_name"
suffix-icon="el-icon-search"
placeholder="请输入关键字"
></el-input>
<el-input v-model="wd_name" suffix-icon="el-icon-search" placeholder="请输入关键字"></el-input>
<div class="block sjxz">
<el-date-picker
value-format="yyyy-MM-dd HH:mm:ss"
v-model="sc_time"
type="daterange"
range-separator="至"
start-placeholder="上传起始时间"
end-placeholder="上传结束时间"
:default-time="['00:00:00', '23:59:59']"
>
<el-date-picker value-format="yyyy-MM-dd HH:mm:ss" v-model="sc_time" type="daterange" range-separator="至"
start-placeholder="上传起始时间" end-placeholder="上传结束时间" :default-time="['00:00:00', '23:59:59']">
</el-date-picker>
</div>
<div class="toggle-switch">
<el-switch
style="display: block"
v-model="toggle_value"
active-color="#09e8e4"
inactive-color="#409eff"
active-text="全文检索"
inactive-text="列表检索"
>
<el-switch style="display: block" v-model="toggle_value" active-color="#09e8e4" inactive-color="#409eff"
active-text="全文检索" inactive-text="列表检索">
</el-switch>
</div>
<div class="button-discuss" @click="searchs">搜索</div>
......@@ -110,30 +93,22 @@
</div> -->
<div class="card-div">
<template v-for="(item, index) in tableData">
<div
class="cards-div animate__animated bk-xxzp-animation"
:class="[
index % 4 == 0
? 'animate__lightSpeedInLeft'
: index % 4 == 1
<div class="cards-div animate__animated bk-xxzp-animation" :class="[
index % 4 == 0
? 'animate__lightSpeedInLeft'
: index % 4 == 1
? 'animate__zoomIn'
: index % 4 == 2
? 'animate__zoomIn'
: 'animate__lightSpeedInRight',
]"
>
<div
:class="[
'tilts',
tab_actives == index ? 'table-active' : '',
]"
@click="handleView(index, item)"
>
? 'animate__zoomIn'
: 'animate__lightSpeedInRight',
]">
<div :class="[
'tilts',
tab_actives == index ? 'table-active' : '',
]" @click="handleView(index, item)">
<div class="img-div">
<!-- <img class="tx-bg" :src="item.photos" :onerror="errimg" /> -->
<div
class="tx-bg animate__animated animate__infinite animate__pulse"
>
<div class="tx-bg animate__animated animate__infinite animate__pulse">
<span>
{{ item.file.type.toUpperCase() }}
</span>
......@@ -155,17 +130,9 @@
</div>
<div class="page-div">
<el-pagination
class="myPagination"
background
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange"
:page-size="pageSize"
:current-page="current_page"
:total="total"
@current-change="handleCurrentChange_lb"
:page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
>
<el-pagination class="myPagination" background layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange" :page-size="pageSize" :current-page="current_page" :total="total"
@current-change="handleCurrentChange_lb" :page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]">
</el-pagination>
</div>
</div>
......@@ -174,47 +141,24 @@
<div v-if="toggle_value_qw" class="transition-box">
<div class="bottom-content">
<div class="content-title">
<span
>为您提供<span class="new-num" v-text="totals_qw"></span
>条数据</span
>
<span>为您提供<span class="new-num" v-text="totals_qw"></span>条数据</span>
</div>
<div class="content-text">
<div class="content-news" v-for="(item, index) in get_files">
<div class="news-title">
<div class="first-div">
<span
>文档名称:<span
v-text="item.fileInfo.name"
class="span_cl"
></span
></span>
<span>文档名称:<span v-text="item.fileInfo.name" class="span_cl"></span></span>
</div>
<div class="last-div">
<span
>文件原名称:<span
v-text="item.fileInfo.file.name"
class="span_cl"
></span
></span>
<span>文件原名称:<span v-text="item.fileInfo.file.name" class="span_cl"></span></span>
</div>
</div>
<div class="news-content" v-html="item.highLight"></div>
<div class="news-info">
<span class="news-info-from"
>类型:<span
v-text="item.fileInfo.file.type"
></span></span
>&emsp;
<span class="news-info-channel"
>上传时间:<span v-text="item.create_time"></span></span
>&emsp;
<span class="news-info-from">类型:<span v-text="item.fileInfo.file.type"></span></span>&emsp;
<span class="news-info-channel">上传时间:<span v-text="item.create_time"></span></span>&emsp;
<div class="news-info-tool">
<i
class="el-icon-view views"
@click="handleView_qwss(item)"
title="预览"
></i>
<i class="el-icon-view views" @click="handleView_qwss(item)" title="预览"></i>
<!-- &nbsp;
<i
class="el-icon-download"
......@@ -229,17 +173,10 @@
<div class="page-div">
<div class="pagination-div">
<el-pagination
class="myPagination"
background
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange_qw"
:page-size="pageSize_qw"
:current-page="current_page_qw"
:total="totals_qw"
@current-change="handleCurrentChange_qw"
:page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
>
<el-pagination class="myPagination" background layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange_qw" :page-size="pageSize_qw" :current-page="current_page_qw"
:total="totals_qw" @current-change="handleCurrentChange_qw"
:page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]">
</el-pagination>
</div>
</div>
......@@ -249,50 +186,20 @@
</div>
<div v-show="!wjfx_qh">
<div v-show="tab_jsfx" style="position: relative">
<el-input
style="width: 30%; margin-left: 35%; margin-top: 20%"
v-model="gjc_input"
placeholder="请输入关键词 回车搜索"
suffix-icon="el-icon-search"
@keyup.enter.native="onSubmit"
></el-input>
<el-tooltip
class="item"
effect="light"
content="文件分析"
placement="top-start"
>
<el-button
type="primary"
icon="el-icon-data-line"
size="small"
style="right: 75px; position: absolute"
@click="wjfx_cli()"
circle
></el-button>
<el-input style="width: 30%; margin-left: 35%; margin-top: 20%" v-model="gjc_input" placeholder="请输入关键词 回车搜索"
suffix-icon="el-icon-search" @keyup.enter.native="onSubmit"></el-input>
<el-tooltip class="item" effect="light" content="文件分析" placement="top-start">
<el-button type="primary" icon="el-icon-data-line" size="small" style="right: 75px; position: absolute"
@click="wjfx_cli()" circle></el-button>
</el-tooltip>
<el-tooltip
class="item"
effect="light"
content="智能检索分析"
placement="top-start"
>
<el-button
type="info"
icon="el-icon-data-board"
size="small"
style="right: 35px; position: absolute; pointer-events: none"
circle
></el-button>
<el-tooltip class="item" effect="light" content="智能检索分析" placement="top-start">
<el-button type="info" icon="el-icon-data-board" size="small"
style="right: 35px; position: absolute; pointer-events: none" circle></el-button>
</el-tooltip>
</div>
<div v-show="!tab_jsfx">
<div class="top-div">
<el-input
v-model="znjsfx_name"
suffix-icon="el-icon-search"
placeholder="请输入关键字"
></el-input>
<el-input v-model="znjsfx_name" suffix-icon="el-icon-search" placeholder="请输入关键字"></el-input>
<div class="button-discuss" @click="seach_znjsfx(1)">搜索</div>
<!-- <el-tooltip
class="item"
......@@ -326,12 +233,7 @@
</div>
<div class="bottom-div">
<div class="table-div">
<el-table
:data="tableData_znjsfx"
height="100%"
border
style="width: 100%"
>
<el-table :data="tableData_znjsfx" height="100%" border style="width: 100%">
<el-table-column type="index" label="序号" width="80">
</el-table-column>
<el-table-column prop="name" label="文档名称" width="250">
......@@ -344,75 +246,33 @@
</el-table-column>
<el-table-column prop="file.type" label="文档类型" width="110">
</el-table-column>
<el-table-column
prop="cz"
label="操作"
width="150"
show-overflow-tooltip
>
<el-table-column prop="cz" label="操作" width="150" show-overflow-tooltip>
<template slot-scope="scope">
<i
class="el-icon-view"
@click="handleView(scope.$index, scope.row)"
title="预览"
></i
>&nbsp;
<i class="el-icon-view" @click="handleView(scope.$index, scope.row)" title="预览"></i>&nbsp;
<!-- <i
class="el-icon-download"
@click="handleDownload(scope.$index, scope.row)"
title="下载"
></i
>&nbsp; -->
<i
class="el-icon-edit"
@click="handleEdit(scope.$index, scope.row)"
title="编辑"
></i
>&nbsp;
<i
class="el-icon-delete-solid"
@click="handleDelete(scope.$index, scope.row)"
title="删除"
></i>
<i class="el-icon-edit" @click="handleEdit(scope.$index, scope.row)" title="编辑"></i>&nbsp;
<i class="el-icon-delete-solid" @click="handleDelete(scope.$index, scope.row)" title="删除"></i>
</template>
</el-table-column>
</el-table>
</div>
<div class="page-div">
<el-pagination
class="myPagination"
background
layout="prev, pager, next"
:total="total_znjsfx"
:page-size="pageSize"
:current-page="current_page_znjsfx"
@current-change="seach_znjsfx"
>
<el-pagination class="myPagination" background layout="prev, pager, next" :total="total_znjsfx"
:page-size="pageSize" :current-page="current_page_znjsfx" @current-change="seach_znjsfx">
</el-pagination>
</div>
</div>
</div>
</div>
<el-dialog
title="新增文档"
:visible.sync="centerDialogVisible_add"
width="30%"
center
class="xzwd"
>
<el-form
ref="form"
:model="form_add"
label-width="80px"
style="margin-bottom: 0px"
>
<el-dialog title="新增文档" :visible.sync="centerDialogVisible_add" width="30%" center class="xzwd">
<el-form ref="form" :model="form_add" label-width="80px" style="margin-bottom: 0px">
<el-form-item label="文档名称">
<el-input
v-model="form_add.name"
maxlength="20"
show-word-limit
placeholder="请输入文档名称"
></el-input>
<el-input v-model="form_add.name" maxlength="20" show-word-limit placeholder="请输入文档名称"></el-input>
</el-form-item>
<!-- <el-form-item label="文档类别">
<el-select v-model="form_add.region" placeholder="请选择文档类别">
......@@ -426,39 +286,17 @@
</el-select>
</el-form-item> -->
<el-form-item label="关键词">
<el-input
v-model="form_add.gjc"
show-word-limit
placeholder="请输入关键词,多个关键词使用英文逗号,隔开"
></el-input>
<el-input v-model="form_add.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input>
</el-form-item>
<el-form-item label="文档描述">
<el-input
type="textarea"
placeholder="请输入文档描述"
v-model="form_add.ms"
maxlength="100"
show-word-limit
:rows="4"
>
<el-input type="textarea" placeholder="请输入文档描述" v-model="form_add.ms" maxlength="100" show-word-limit :rows="4">
</el-input>
</el-form-item>
<el-form-item label="选择文件" style="margin-bottom: 0px">
<el-upload
class="upload-demo"
ref="upload"
action="uploadUrl"
:file-list="form_add.fileList"
:on-change="handleChange"
:show-file-list="true"
:auto-upload="false"
:multiple="false"
:on-remove="handleRemove"
:accept="format_files"
>
<el-button slot="trigger" size="small" type="primary"
>选取文件</el-button
>
<el-upload class="upload-demo" ref="upload" action="uploadUrl" :file-list="form_add.fileList"
:on-change="handleChange" :show-file-list="true" :auto-upload="false" :multiple="false"
:on-remove="handleRemove" :accept="format_files">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">
允许上传DOC、PPT、JPG、PNG、MP4等等 ,且不超过100M
</div>
......@@ -471,19 +309,10 @@
</span>
</el-dialog>
<el-dialog
title="编辑文档"
:visible.sync="centerDialogVisible_edit"
width="30%"
center
>
<el-dialog title="编辑文档" :visible.sync="centerDialogVisible_edit" width="30%" center>
<el-form ref="form" :model="form_edit" label-width="80px">
<el-form-item label="文档名称">
<el-input
v-model="form_edit.name"
maxlength="20"
show-word-limit
></el-input>
<el-input v-model="form_edit.name" maxlength="20" show-word-limit></el-input>
</el-form-item>
<!-- <el-form-item label="文档类别">
<el-select v-model="form_edit.region" placeholder="请选择文档类别">
......@@ -497,21 +326,11 @@
</el-select>
</el-form-item> -->
<el-form-item label="关键词">
<el-input
v-model="form_edit.gjc"
show-word-limit
placeholder="请输入关键词,多个关键词使用英文逗号,隔开"
></el-input>
<el-input v-model="form_edit.gjc" show-word-limit placeholder="请输入关键词,多个关键词使用英文逗号,隔开"></el-input>
</el-form-item>
<el-form-item label="文档描述">
<el-input
type="textarea"
placeholder="请输入文档描述"
v-model="form_edit.ms"
maxlength="100"
show-word-limit
:rows="4"
>
<el-input type="textarea" placeholder="请输入文档描述" v-model="form_edit.ms" maxlength="100" show-word-limit
:rows="4">
</el-input>
</el-form-item>
</el-form>
......@@ -520,41 +339,15 @@
<el-button type="primary" @click="submit_bj">确 定</el-button>
</span>
</el-dialog>
<el-dialog
:title="title"
:visible.sync="centerDialogVisible_video"
center
width="800px"
>
<el-dialog :title="title" :visible.sync="centerDialogVisible_video" center width="800px">
<div style="height: 400px; position: relative">
<video
id="video"
class=""
preload="meta"
controls
width="100%"
object-fit="fill"
height="100%"
controlslist="nodownload"
:src="video_src"
disablePictureInPicture
></video>
<video id="video" class="" preload="meta" controls width="100%" object-fit="fill" height="100%"
controlslist="nodownload" :src="video_src" disablePictureInPicture></video>
</div>
</el-dialog>
<el-dialog
:title="title_sound"
:visible.sync="centerDialogVisible_sound"
center
width="500px"
>
<audio
controls
id="sound_id"
:src="sound_src"
controlslist="nodownload"
class="audio-class"
></audio>
<el-dialog :title="title_sound" :visible.sync="centerDialogVisible_sound" center width="500px">
<audio controls id="sound_id" :src="sound_src" controlslist="nodownload" class="audio-class"></audio>
</el-dialog>
</div>
</template>
......@@ -575,6 +368,7 @@ import {
import { uuid } from "../../util/data_util";
import VanillaTilt from "vanilla-tilt";
import "animate.css";
import { queryDoc, searchFiles } from '../../api/zfclk/wxgl';
export default {
data() {
return {
......@@ -689,23 +483,16 @@ export default {
// startLoading();
_this.tableData = [];
_this.total = 0;
post(
"api/rest/document/queryDoc?pageNum=" +
pageNum +
"&pageSize=" +
_this.pageSize,
_this.paramData
)
.then((data) => {
setTimeout(() => {
if (data.list.length != 0) {
_this.tableData = data.list;
}
_this.total = data.totals;
_this.current_page = pageNum;
}, 500);
// endLoading();
})
queryDoc(pageNum, _this.pageSize, _this.paramData).then((data) => {
setTimeout(() => {
if (data.list.length != 0) {
_this.tableData = data.list;
}
_this.total = data.totals;
_this.current_page = pageNum;
}, 500);
// endLoading();
})
.catch((err) => {
this.$message.warning(err.message);
});
......@@ -737,26 +524,19 @@ export default {
startLoading();
_this.get_files = [];
_this.totals_qw = 0;
post(
"api/rest/fulltext/searchFiles?pageNum=" +
pageNum +
"&pageSize=" +
_this.pageSize_qw,
paramDatas
)
.then((data) => {
if (data.list.length != 0) {
data.list.forEach((item, index) => {
data.list[index].create_time = new Date(
data.list[index].create_time
).Format("yyyy-MM-dd HH:mm:ss");
});
_this.get_files = data.list;
_this.totals_qw = data.totals;
_this.current_page_qw = pageNum;
}
endLoading();
})
searchFiles(pageNum, _this.pageSize_qw, paramDatas).then((data) => {
if (data.list.length != 0) {
data.list.forEach((item, index) => {
data.list[index].create_time = new Date(
data.list[index].create_time
).Format("yyyy-MM-dd HH:mm:ss");
});
_this.get_files = data.list;
_this.totals_qw = data.totals;
_this.current_page_qw = pageNum;
}
endLoading();
})
.catch((err) => {
endLoading();
this.$message.warning(err.message);
......@@ -853,11 +633,11 @@ export default {
.then(() => {
delete_util(
"api/rest/document/delDoc/" +
ids +
"?folder=" +
_this.type_folder +
"&name=" +
row.file.uuid
ids +
"?folder=" +
_this.type_folder +
"&name=" +
row.file.uuid
)
.then((data) => {
if (data == 1) {
......@@ -1018,9 +798,9 @@ export default {
_this.total_znjsfx = 0;
post(
"api/rest/document/queryDoc?pageNum=" +
pageNum +
"&pageSize=" +
_this.pageSize,
pageNum +
"&pageSize=" +
_this.pageSize,
paramDatas
).then((data) => {
if (data.list.length != 0) {
......@@ -1137,70 +917,89 @@ export default {
overflow: hidden;
background-size: 100% 100%;
color: white;
.el-tabs--card > .el-tabs__header {
.el-tabs--card>.el-tabs__header {
border-bottom: 1px solid #146a80;
}
.el-tabs--card > .el-tabs__header .el-tabs__nav {
.el-tabs--card>.el-tabs__header .el-tabs__nav {
border: 1px solid #146a80;
}
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
.el-tabs--card>.el-tabs__header .el-tabs__item.is-active {
border-bottom-color: #3b9cff;
}
.el-tabs__item {
color: #656565;
}
.el-tabs--card > .el-tabs__header .el-tabs__item {
.el-tabs--card>.el-tabs__header .el-tabs__item {
border-left: 1px solid #146a80;
}
.el-tabs__item.is-active {
color: #409eff !important;
}
.el-input__count {
color: #229dbd;
background: #1d2d4600;
}
.el-input__count-inner {
color: #229dbd;
background: #1d2d46;
}
.top-div {
width: 100%;
height: 60px;
.el-button{
.el-button {
float: left;
margin-left: 10px;
margin-top: 3px;
}
.el-input {
float: left;
width: 200px;
margin-right: 30px;
.el-input__inner {
background: none;
color: #ffff;
border: 1px solid #3a5f94c9 !important;
}
}
.el-select {
float: left;
}
.sjxz {
width: 350px;
float: left;
.el-date-editor {
background: none;
span {
color: white;
}
.el-range-input {
color: white;
background: none;
}
}
.el-input__inner {
border: 1px solid #3a5f94c9 !important;
}
}
.button-discuss {
width: 100px;
height: 30px;
......@@ -1215,6 +1014,7 @@ export default {
background-repeat: no-repeat;
background-size: 100% 100%;
}
.button-discuss1 {
width: 100px;
height: 30px;
......@@ -1229,28 +1029,35 @@ export default {
background-repeat: no-repeat;
background-size: 100% 100%;
}
.toggle-switch {
float: left;
margin-top: 10px;
margin-left: 20px;
.el-switch__label.is-active {
color: #409eff !important;
}
.el-switch__label {
display: unset;
color: #5a5a5a;
span {
font-size: 15px;
}
}
}
}
.bottom-div {
width: 100%;
height: calc(100% - 55px);
.table-div {
width: 100%;
height: calc(100% - 50px);
.el-table tr {
background-color: transparent !important;
color: #ffffffc7;
......@@ -1262,13 +1069,13 @@ export default {
background-size: 100% 100%;
}
.el-table th{
.el-table th {
background-color: transparent;
}
tbody tr {
border-bottom: 1px solid #252631;
}
border-bottom: 1px solid #252631;
}
.el-table td {
border-bottom: 1px solid #252631;
......@@ -1313,16 +1120,19 @@ export default {
background-color: unset;
}
}
.card-div {
width: 100%;
height: calc(100% - 50px);
overflow-y: auto;
overflow-x: hidden;
.cards-div {
width: 23%;
height: 160px;
margin: 1%;
float: left;
.tilts {
width: 100%;
height: 100%;
......@@ -1331,9 +1141,11 @@ export default {
cursor: pointer;
transform: perspective(1000px);
}
.tilts:hover {
transform-style: preserve-3d;
background-image: url("../../assets/img/fzjc/new/1.png");
// .span-div {
// .span-div-bg {
// background-image: url("../../assets/img/dfzy/new/5.png");
......@@ -1345,8 +1157,10 @@ export default {
color: transparent;
}
}
.table-active {
background-image: url("../../assets/img/dfzy/new/1.png");
// .span-div {
// .span-div-bg {
// background-image: url("../../assets/img/dfzy/new/5.png");
......@@ -1358,6 +1172,7 @@ export default {
color: transparent;
}
}
.img-div {
width: 70px;
height: 70px;
......@@ -1368,6 +1183,7 @@ export default {
transform: translateZ(20px);
display: flex;
align-items: center;
.tx-bg {
width: 100%;
background-size: 100% 100%;
......@@ -1375,6 +1191,7 @@ export default {
text-align: center;
letter-spacing: 2;
font-weight: 900;
span {
background: linear-gradient(to bottom, #fffe7f, #54ff88);
-webkit-background-clip: text;
......@@ -1382,12 +1199,14 @@ export default {
}
}
}
.text-div {
width: calc(100% - 140px);
height: 54px;
float: left;
margin-top: 40px;
transform: translateZ(20px);
.name-div {
width: 100%;
height: 100%;
......@@ -1395,6 +1214,7 @@ export default {
// background-size: 100% 100%;
// text-align: center;
color: white;
.top-span {
font-size: 13px;
letter-spacing: 1px;
......@@ -1407,10 +1227,12 @@ export default {
overflow: hidden;
}
}
.bottom-span {
text-align: center;
font-size: 12px;
}
.synopsis-div {
color: #ffffff87;
font-size: 15px;
......@@ -1425,6 +1247,7 @@ export default {
word-break: break-all;
white-space: pre-line;
}
.xq-div {
width: calc(100% - 40px);
padding-left: 28px;
......@@ -1433,6 +1256,7 @@ export default {
margin-top: 5px;
float: left;
}
.el-tag {
float: left;
margin-right: 10px;
......@@ -1443,9 +1267,11 @@ export default {
}
}
}
.bottom-content {
width: 100%;
height: calc(100% - 50px);
.content-title {
width: 100%;
height: 40px;
......@@ -1453,18 +1279,22 @@ export default {
padding-left: 20px;
box-sizing: border-box;
background: #263b5d;
.new-num {
color: #09c69c;
}
}
.content-text {
width: 100%;
height: calc(100% - 40px);
padding: 10px;
overflow-y: auto;
box-sizing: border-box;
.content-news {
border-bottom: 1px solid #156677;
.news-title {
width: 100%;
height: 40px;
......@@ -1472,19 +1302,23 @@ export default {
padding-left: 20px;
cursor: pointer;
box-sizing: border-box;
.first-div {
font-size: 18px;
float: left;
}
.last-div {
font-size: 15px;
float: left;
margin-left: 50px;
}
.span_cl {
color: #28d0ff;
}
}
.news-content {
font-size: 18px;
text-indent: 25px;
......@@ -1497,6 +1331,7 @@ export default {
-webkit-line-clamp: 2;
overflow: hidden;
color: #08addb;
em {
color: red;
font-size: 22px;
......@@ -1504,37 +1339,47 @@ export default {
font-weight: 600;
}
}
.news-info {
width: 100%;
height: 30px;
margin-top: 10px;
.news-info-from {
margin-left: 20px;
span {
color: #28d0ff;
}
}
.news-info-channel {
margin-left: 20px;
span {
color: #28d0ff;
}
}
.news-info-time {
margin-left: 20px;
}
.news-info-feeling {
margin-left: 20px;
}
.news-info-tool {
width: 100px;
float: right;
}
.el-icon-download {
color: #1172d8;
cursor: pointer;
font-size: 20px;
}
.views {
color: #00ffff;
font-size: 20px;
......
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