网络安全

duhanyu
杜函宇 2 years ago
parent 17e7888cf1
commit 27efd89ea0

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询舆情信息量统计明細列表
export function listYqxxltj(query) {
return request({
url: '/tcZz/netWorkYq/yqxxltj/list',
url: '/tcZz/netWorkYq/yqxxltj/ListNoToken',
method: 'get',
params: query
})

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询舆情走势图列表
export function listYqzs(query) {
return request({
url: '/tcZz/netWorkYq/yqzs/list',
url: '/tcZz/netWorkYq/yqzs/ListNoToken',
method: 'get',
params: query
})

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询网络监测列表
export function listCybersecurity(query) {
return request({
url: '/tcZz/networkSecurity/cybersecurity/list',
url: '/tcZz/networkSecurity/cybersecurity/ListNoToken',
method: 'get',
params: query
})

@ -1,8 +1,14 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<!-- <el-form-item label="${comment}" prop="id">
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<!-- <el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
@ -11,25 +17,25 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input
v-model="queryParams.zb"
placeholder="请输入占比"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="创建者" prop="createBy">
<el-form-item label="名称" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input
v-model="queryParams.zb"
placeholder="请输入占比"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
@ -80,95 +86,128 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/netWorkYq:mtlx:add']"
v-hasPermi="['tcZz/netWorkYq:mtlx:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/netWorkYq:mtlx:export']"
v-hasPermi="['tcZz/netWorkYq:mtlx:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="mtlxList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="mtlxList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="名称" align="center" prop="name" />
<el-table-column label="占比" align="center" prop="zb" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="名称" align="center" prop="name" />
<el-table-column label="占比" align="center" prop="zb" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改媒体类型对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="名称" prop="name">
<el-input v-model="form.name" placeholder="请输入名称" />
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input v-model="form.zb" placeholder="请输入占比" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="名称" prop="name">
<el-input v-model="form.name" placeholder="请输入名称" />
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input v-model="form.zb" placeholder="请输入占比" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -177,237 +216,255 @@
</el-dialog>
<!--查看媒体类型详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="媒体类型" :column="2" border labelClassName="desLable">
<el-descriptions-item label="名称">{{ form.name }}</el-descriptions-item>
<el-descriptions-item label="占比">{{ form.zb }}</el-descriptions-item>
<el-descriptions
title="媒体类型"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="名称">{{
form.name
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
<el-descriptions-item label="占比">{{ form.zb }}</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listMtlx, getMtlx, delMtlx, addMtlx, updateMtlx, exportMtlx } from "@/api/tcZz/netWorkYq/mtlx";
export default {
name: "Mtlx",
//
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
mtlxList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
import {
listMtlx,
getMtlx,
delMtlx,
addMtlx,
updateMtlx,
exportMtlx,
} from "@/api/tcZz/netWorkYq/mtlx";
export default {
name: "Mtlx",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
mtlxList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
name: null,
name: null,
zb: null,
zb: null,
createBy: null,
createBy: null,
createTime: null,
createTime: null,
updateBy: null,
updateBy: null,
updateTime: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
};
remark: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询媒体类型列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listMtlx(this.queryParams).then((response) => {
this.mtlxList = response.rows;
this.total = response.total;
this.loading = false;
});
},
created() {
this.getList();
//
cancel() {
this.open = false;
this.reset();
},
methods: {
/** 查询媒体类型列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listMtlx(this.queryParams).then(response => {
this.mtlxList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
name: null,
//
reset() {
this.form = {
id: null,
zb: null,
name: null,
createBy: null,
zb: null,
createTime: null,
createBy: null,
updateBy: null,
createTime: null,
updateTime: null,
updateBy: null,
remark: null,
updateTime: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getMtlx(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看媒体类型详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getMtlx(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看媒体类型详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加媒体类型";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getMtlx(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加媒体类型";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getMtlx(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改媒体类型";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateMtlx(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addMtlx(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改媒体类型";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateMtlx(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addMtlx(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delMtlx(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有媒体类型数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/mtlx/export', {
...this.queryParams
}, '媒体类型_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有媒体类型数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/mtlx/export",
{
...this.queryParams,
},
"媒体类型_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,8 +1,14 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<!-- <el-form-item label="${comment}" prop="id">
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<!-- <el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
@ -11,43 +17,43 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="本地相关信息数量" prop="count1">
<el-input
v-model="queryParams.count1"
placeholder="请输入本地相关信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="本地敏感信息数量" prop="count2">
<el-input
v-model="queryParams.count2"
placeholder="请输入本地敏感信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="推送预警信息数量" prop="count3">
<el-input
v-model="queryParams.count3"
placeholder="请输入推送预警信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="聚焦本地媒体数量" prop="count4">
<el-input
v-model="queryParams.count4"
placeholder="请输入聚焦本地媒体数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="创建者" prop="createBy">
<el-form-item label="本地相关信息数量" prop="count1">
<el-input
v-model="queryParams.count1"
placeholder="请输入本地相关信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="本地敏感信息数量" prop="count2">
<el-input
v-model="queryParams.count2"
placeholder="请输入本地敏感信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="推送预警信息数量" prop="count3">
<el-input
v-model="queryParams.count3"
placeholder="请输入推送预警信息数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="聚焦本地媒体数量" prop="count4">
<el-input
v-model="queryParams.count4"
placeholder="请输入聚焦本地媒体数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="创建者" prop="createBy">
<el-input
v-model="queryParams.createBy"
placeholder="请输入创建者"
@ -98,103 +104,148 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:add']"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:export']"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="yqxxlnumList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="yqxxlnumList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="本地相关信息数量" align="center" prop="count1" />
<el-table-column label="本地敏感信息数量" align="center" prop="count2" />
<el-table-column label="推送预警信息数量" align="center" prop="count3" />
<el-table-column label="聚焦本地媒体数量" align="center" prop="count4" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="本地相关信息数量" align="center" prop="count1" />
<el-table-column label="本地敏感信息数量" align="center" prop="count2" />
<el-table-column label="推送预警信息数量" align="center" prop="count3" />
<el-table-column label="聚焦本地媒体数量" align="center" prop="count4" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改舆情信息量统计对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="本地相关信息数量" prop="count1">
<el-input v-model="form.count1" placeholder="请输入本地相关信息数量" />
</el-form-item>
<el-form-item label="本地敏感信息数量" prop="count2">
<el-input v-model="form.count2" placeholder="请输入本地敏感信息数量" />
</el-form-item>
<el-form-item label="推送预警信息数量" prop="count3">
<el-input v-model="form.count3" placeholder="请输入推送预警信息数量" />
</el-form-item>
<el-form-item label="聚焦本地媒体数量" prop="count4">
<el-input v-model="form.count4" placeholder="请输入聚焦本地媒体数量" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="本地相关信息数量" prop="count1">
<el-input
v-model="form.count1"
placeholder="请输入本地相关信息数量"
/>
</el-form-item>
<el-form-item label="本地敏感信息数量" prop="count2">
<el-input
v-model="form.count2"
placeholder="请输入本地敏感信息数量"
/>
</el-form-item>
<el-form-item label="推送预警信息数量" prop="count3">
<el-input
v-model="form.count3"
placeholder="请输入推送预警信息数量"
/>
</el-form-item>
<el-form-item label="聚焦本地媒体数量" prop="count4">
<el-input
v-model="form.count4"
placeholder="请输入聚焦本地媒体数量"
/>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -203,249 +254,273 @@
</el-dialog>
<!--查看舆情信息量统计详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="舆情信息量统计" :column="2" border labelClassName="desLable">
<el-descriptions-item label="本地相关信息数量">{{ form.count1 }}</el-descriptions-item>
<el-descriptions-item label="本地敏感信息数量">{{ form.count2 }}</el-descriptions-item>
<el-descriptions-item label="推送预警信息数量">{{ form.count3 }}</el-descriptions-item>
<el-descriptions-item label="聚焦本地媒体数量">{{ form.count4 }}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
</el-descriptions>
<el-descriptions
title="舆情信息量统计"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="本地相关信息数量">{{
form.count1
}}</el-descriptions-item>
<el-descriptions-item label="本地敏感信息数量">{{
form.count2
}}</el-descriptions-item>
<el-descriptions-item label="推送预警信息数量">{{
form.count3
}}</el-descriptions-item>
<el-descriptions-item label="聚焦本地媒体数量">{{
form.count4
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listYqxxlnum, getYqxxlnum, delYqxxlnum, addYqxxlnum, updateYqxxlnum, exportYqxxlnum } from "@/api/tcZz/netWorkYq/yqxxlnum";
export default {
name: "Yqxxlnum",
//
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
yqxxlnumList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
count1: null,
import {
listYqxxlnum,
getYqxxlnum,
delYqxxlnum,
addYqxxlnum,
updateYqxxlnum,
exportYqxxlnum,
} from "@/api/tcZz/netWorkYq/yqxxlnum";
export default {
name: "Yqxxlnum",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
yqxxlnumList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
count1: null,
count2: null,
count3: null,
count4: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询舆情信息量统计列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listYqxxlnum(this.queryParams).then((response) => {
this.yqxxlnumList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
count2: null,
count1: null,
count3: null,
count2: null,
count4: null,
count3: null,
createBy: null,
count4: null,
createTime: null,
createBy: null,
updateBy: null,
createTime: null,
updateTime: null,
updateBy: null,
remark: null,
updateTime: null,
},
//
form: {},
//
rules: {
}
remark: null,
};
this.resetForm("form");
},
created() {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
methods: {
/** 查询舆情信息量统计列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listYqxxlnum(this.queryParams).then(response => {
this.yqxxlnumList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
count1: null,
count2: null,
count3: null,
count4: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getYqxxlnum(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情信息量统计详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getYqxxlnum(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情信息量统计详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加舆情信息量统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getYqxxlnum(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加舆情信息量统计";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getYqxxlnum(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改舆情信息量统计";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateYqxxlnum(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqxxlnum(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改舆情信息量统计";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateYqxxlnum(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqxxlnum(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delYqxxlnum(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有舆情信息量统计数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/yqxxlnum/export', {
...this.queryParams
}, '舆情信息量统计_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有舆情信息量统计数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/yqxxlnum/export",
{
...this.queryParams,
},
"舆情信息量统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

File diff suppressed because it is too large Load Diff

@ -1,8 +1,14 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<!-- <el-form-item label="${comment}" prop="id">
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<!-- <el-form-item label="${comment}" prop="id">
<el-input
v-model="queryParams.id"
placeholder="请输入${comment}"
@ -11,17 +17,22 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="日期">
<el-form-item label="区域" prop="areaId">
<el-select
v-model="queryParams.areaId"
placeholder="请选择区域"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!-- <el-form-item label="日期">
<el-date-picker
v-model="daterangeDateTime"
size="small"
@ -84,147 +95,181 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="非敏感数量" prop="count1">
<el-input
v-model="queryParams.count1"
placeholder="请输入非敏感数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="敏感数量" prop="count2">
<el-input
v-model="queryParams.count2"
placeholder="请输入敏感数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<el-form-item label="非敏感数量" prop="count1">
<el-input
v-model="queryParams.count1"
placeholder="请输入非敏感数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="敏感数量" prop="count2">
<el-input
v-model="queryParams.count2"
placeholder="请输入敏感数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/netWorkYq:yqzs:add']"
v-hasPermi="['tcZz/netWorkYq:yqzs:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button>
<!-- @click="handleImport" -->
<el-button
type="info"
size="mini"
v-hasPermi="['system:user:import']"
>导入</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button
>
<!-- @click="handleImport" -->
<el-button type="info" size="mini" v-hasPermi="['system:user:import']"
>导入</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/netWorkYq:yqzs:export']"
v-hasPermi="['tcZz/netWorkYq:yqzs:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="yqzsList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="yqzsList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId"/>
</template>
</el-table-column>
<el-table-column label="日期" align="center" prop="dateTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.dateTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="备注" align="center" prop="remark" /> -->
<el-table-column label="非敏感数量" align="center" prop="count1" />
<el-table-column label="敏感数量" align="center" prop="count2" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
<el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope">
<dict-tag :options="dict.type.tc_area" :value="scope.row.areaId" />
</template>
</el-table-column>
<el-table-column label="日期" align="center" prop="dateTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.dateTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="备注" align="center" prop="remark" /> -->
<el-table-column label="非敏感数量" align="center" prop="count1" />
<el-table-column label="敏感数量" align="center" prop="count2" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改舆情走势图对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="区域" prop="areaId">
<el-select v-model="form.areaId" placeholder="请选择区域">
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="日期" prop="dateTime">
<el-date-picker clearable size="small"
v-model="form.dateTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="非敏感数量" prop="count1">
<el-input v-model="form.count1" placeholder="请输入非敏感数量" />
</el-form-item>
<el-form-item label="敏感数量" prop="count2">
<el-input v-model="form.count2" placeholder="请输入敏感数量" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="区域" prop="areaId">
<el-select v-model="form.areaId" placeholder="请选择区域">
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
:label="dict.label"
:value="parseInt(dict.value)"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="日期" prop="dateTime">
<el-date-picker
clearable
size="small"
v-model="form.dateTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-form-item label="非敏感数量" prop="count1">
<el-input v-model="form.count1" placeholder="请输入非敏感数量" />
</el-form-item>
<el-form-item label="敏感数量" prop="count2">
<el-input v-model="form.count2" placeholder="请输入敏感数量" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -233,257 +278,281 @@
</el-dialog>
<!--查看舆情走势图详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="舆情走势图" :column="2" border labelClassName="desLable">
<el-descriptions-item label="区域">{{ selectDictLabel(dict.type.tc_area,form.areaId) }}</el-descriptions-item>
<el-descriptions-item label="日期">{{ form.dateTime }}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
<el-descriptions-item label="非敏感数量">{{ form.count1 }}</el-descriptions-item>
<el-descriptions-item label="敏感数量">{{ form.count2 }}</el-descriptions-item>
</el-descriptions>
<el-descriptions
title="舆情走势图"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="区域">{{
selectDictLabel(dict.type.tc_area, form.areaId)
}}</el-descriptions-item>
<el-descriptions-item label="日期">{{
form.dateTime
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
<el-descriptions-item label="非敏感数量">{{
form.count1
}}</el-descriptions-item>
<el-descriptions-item label="敏感数量">{{
form.count2
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listYqzs, getYqzs, delYqzs, addYqzs, updateYqzs, exportYqzs } from "@/api/tcZz/netWorkYq/yqzs";
export default {
name: "Yqzs",
//
dicts: ['tc_area'],
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
yqzsList: [],
//
title: "",
//
open: false,
//
daterangeDateTime: [],
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
areaId: null,
import {
listYqzs,
getYqzs,
delYqzs,
addYqzs,
updateYqzs,
exportYqzs,
} from "@/api/tcZz/netWorkYq/yqzs";
export default {
name: "Yqzs",
//
dicts: ["tc_area"],
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
yqzsList: [],
//
title: "",
//
open: false,
//
daterangeDateTime: [],
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
areaId: null,
dateTime: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
count1: null,
count2: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询舆情走势图列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeDateTime && "" != this.daterangeDateTime) {
this.queryParams.params["beginDateTime"] = this.daterangeDateTime[0];
this.queryParams.params["endDateTime"] = this.daterangeDateTime[1];
}
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listYqzs(this.queryParams).then((response) => {
this.yqzsList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
dateTime: null,
areaId: null,
createBy: null,
dateTime: null,
createTime: null,
createBy: null,
updateBy: null,
createTime: null,
updateTime: null,
updateBy: null,
remark: null,
updateTime: null,
count1: null,
remark: null,
count2: null,
count1: null,
},
//
form: {},
//
rules: {
}
count2: null,
};
this.resetForm("form");
},
created() {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
methods: {
/** 查询舆情走势图列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeDateTime && '' != this.daterangeDateTime) {
this.queryParams.params["beginDateTime"] = this.daterangeDateTime[0];
this.queryParams.params["endDateTime"] = this.daterangeDateTime[1];
}
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listYqzs(this.queryParams).then(response => {
this.yqzsList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
areaId: null,
dateTime: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
count1: null,
count2: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeDateTime = [];
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getYqzs(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情走势图详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
/** 重置按钮操作 */
resetQuery() {
this.daterangeDateTime = [];
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getYqzs(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情走势图详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加舆情走势图";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getYqzs(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加舆情走势图";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getYqzs(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改舆情走势图";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateYqzs(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqzs(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改舆情走势图";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateYqzs(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqzs(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delYqzs(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有舆情走势图数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/yqzs/export', {
...this.queryParams
}, '舆情走势图_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有舆情走势图数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/yqzs/export",
{
...this.queryParams,
},
"舆情走势图_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,114 +1,152 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="名称" prop="cityName">
<el-input
v-model="queryParams.cityName"
placeholder="请输入名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input
v-model="queryParams.zb"
placeholder="请输入占比"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item label="名称" prop="cityName">
<el-input
v-model="queryParams.cityName"
placeholder="请输入名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input
v-model="queryParams.zb"
placeholder="请输入占比"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/networkSecurity:fbqk:add']"
v-hasPermi="['tcZz/networkSecurity:fbqk:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/networkSecurity:fbqk:export']"
v-hasPermi="['tcZz/networkSecurity:fbqk:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="fbqkList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="fbqkList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="名称" align="center" prop="cityName" />
<el-table-column label="占比" align="center" prop="zb" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<el-table-column label="名称" align="center" prop="cityName" />
<el-table-column label="占比" align="center" prop="zb" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改分布情况 tc_fbqk对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="名称" prop="cityName">
<el-input v-model="form.cityName" placeholder="请输入名称" />
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input v-model="form.zb" placeholder="请输入占比" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="名称" prop="cityName">
<el-input v-model="form.cityName" placeholder="请输入名称" />
</el-form-item>
<el-form-item label="占比" prop="zb">
<el-input v-model="form.zb" placeholder="请输入占比" />
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -117,237 +155,255 @@
</el-dialog>
<!--查看分布情况 tc_fbqk详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="分布情况 tc_fbqk" :column="2" border labelClassName="desLable">
<el-descriptions-item label="名称">{{ form.cityName }}</el-descriptions-item>
<el-descriptions-item label="占比">{{ form.zb }}</el-descriptions-item>
<el-descriptions
title="分布情况 tc_fbqk"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="名称">{{
form.cityName
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
<el-descriptions-item label="占比">{{ form.zb }}</el-descriptions-item>
</el-descriptions>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listFbqk, getFbqk, delFbqk, addFbqk, updateFbqk, exportFbqk } from "@/api/tcZz/networkSecurity/fbqk";
export default {
name: "Fbqk",
//
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// tc_fbqk
fbqkList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
import {
listFbqk,
getFbqk,
delFbqk,
addFbqk,
updateFbqk,
exportFbqk,
} from "@/api/tcZz/networkSecurity/fbqk";
export default {
name: "Fbqk",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// tc_fbqk
fbqkList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
cityName: null,
cityName: null,
zb: null,
zb: null,
createBy: null,
createBy: null,
createTime: null,
createTime: null,
updateBy: null,
updateBy: null,
updateTime: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
};
remark: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询分布情况 tc_fbqk列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listFbqk(this.queryParams).then((response) => {
this.fbqkList = response.rows;
this.total = response.total;
this.loading = false;
});
},
created() {
this.getList();
//
cancel() {
this.open = false;
this.reset();
},
methods: {
/** 查询分布情况 tc_fbqk列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listFbqk(this.queryParams).then(response => {
this.fbqkList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
//
reset() {
this.form = {
id: null,
cityName: null,
cityName: null,
zb: null,
zb: null,
createBy: null,
createBy: null,
createTime: null,
createTime: null,
updateBy: null,
updateBy: null,
updateTime: null,
updateTime: null,
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getFbqk(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看分布情况 tc_fbqk详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getFbqk(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看分布情况 tc_fbqk详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加分布情况 tc_fbqk";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getFbqk(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加分布情况 tc_fbqk";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getFbqk(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改分布情况 tc_fbqk";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateFbqk(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addFbqk(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改分布情况 tc_fbqk";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateFbqk(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addFbqk(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delFbqk(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有分布情况 tc_fbqk数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/networkSecurity/fbqk/export', {
...this.queryParams
}, '分布情况 tc_fbqk_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有分布情况 tc_fbqk数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/networkSecurity/fbqk/export",
{
...this.queryParams,
},
"分布情况 tc_fbqk_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,161 +1,205 @@
<template>
<div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto">
<el-form-item label="时间名称" prop="timeName">
<el-input
v-model="queryParams.timeName"
placeholder="请输入时间名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="通报数量" prop="tbCount">
<el-input
v-model="queryParams.tbCount"
placeholder="请输入通报数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="完成期数" prop="overCount">
<el-input
v-model="queryParams.overCount"
placeholder="请输入完成期数"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="完成比例" prop="overScale">
<el-input
v-model="queryParams.overScale"
placeholder="请输入完成比例"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker clearable size="small"
v-model="queryParams.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<div class="search-hearder" ref="topSearch">
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item label="时间名称" prop="timeName">
<el-input
v-model="queryParams.timeName"
placeholder="请输入时间名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="通报数量" prop="tbCount">
<el-input
v-model="queryParams.tbCount"
placeholder="请输入通报数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="完成期数" prop="overCount">
<el-input
v-model="queryParams.overCount"
placeholder="请输入完成期数"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="完成比例" prop="overScale">
<el-input
v-model="queryParams.overScale"
placeholder="请输入完成比例"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker
clearable
size="small"
v-model="queryParams.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
<div class="layui-table-tool" ref="tableTool">
<el-button
type="primary"
size="mini"
@click="handleAdd()"
v-hasPermi="['tcZz/networkSecurity:tbwc:add']"
v-hasPermi="['tcZz/networkSecurity:tbwc:add']"
>新增</el-button
>
<el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button>
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button
>
<el-button
type="warning"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['tcZz/networkSecurity:tbwc:export']"
v-hasPermi="['tcZz/networkSecurity:tbwc:export']"
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="tbwcList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="tbwcList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="时间名称" align="center" prop="timeName" />
<el-table-column label="通报数量" align="center" prop="tbCount" />
<el-table-column label="完成期数" align="center" prop="overCount" />
<el-table-column label="完成比例" align="center" prop="overScale" />
<el-table-column label="年份" align="center" prop="year" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.year, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<el-table-column label="时间名称" align="center" prop="timeName" />
<el-table-column label="通报数量" align="center" prop="tbCount" />
<el-table-column label="完成期数" align="center" prop="overCount" />
<el-table-column label="完成比例" align="center" prop="overScale" />
<el-table-column label="年份" align="center" prop="year" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.year, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:list']"
size="mini"
@click="handleInfo(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:list']"
>
查看
</el-button>
<el-button
type="success"
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button>
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button
>
<el-button
size="mini"
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button>
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改通报完成情况对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from">
<el-form-item label="时间名称" prop="timeName">
<el-input v-model="form.timeName" placeholder="请输入时间名称" />
</el-form-item>
<el-form-item label="通报数量" prop="tbCount">
<el-input v-model="form.tbCount" placeholder="请输入通报数量" />
</el-form-item>
<el-form-item label="完成期数" prop="overCount">
<el-input v-model="form.overCount" placeholder="请输入完成期数" />
</el-form-item>
<el-form-item label="完成比例" prop="overScale">
<el-input v-model="form.overScale" placeholder="请输入完成比例" />
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker clearable size="small"
v-model="form.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份">
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
<el-dialog
:visible.sync="open"
width="500px"
append-to-body
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ title }}</div>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="时间名称" prop="timeName">
<el-input v-model="form.timeName" placeholder="请输入时间名称" />
</el-form-item>
<el-form-item label="通报数量" prop="tbCount">
<el-input v-model="form.tbCount" placeholder="请输入通报数量" />
</el-form-item>
<el-form-item label="完成期数" prop="overCount">
<el-input v-model="form.overCount" placeholder="请输入完成期数" />
</el-form-item>
<el-form-item label="完成比例" prop="overScale">
<el-input v-model="form.overScale" placeholder="请输入完成比例" />
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker
clearable
size="small"
v-model="form.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份"
>
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -164,255 +208,281 @@
</el-dialog>
<!--查看通报完成情况详情页-->
<el-dialog
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
:visible.sync="infoOpen"
width="90%"
append-to-body
:close-on-click-modal="false"
:destroy-on-close="true"
custom-class="dialog-box"
>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<el-descriptions title="通报完成情况" :column="2" border labelClassName="desLable">
<el-descriptions-item label="时间名称">{{ form.timeName }}</el-descriptions-item>
<el-descriptions-item label="通报数量">{{ form.tbCount }}</el-descriptions-item>
<el-descriptions-item label="完成期数">{{ form.overCount }}</el-descriptions-item>
<el-descriptions-item label="完成比例">{{ form.overScale }}</el-descriptions-item>
<el-descriptions-item label="年份">{{ form.year }}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</el-descriptions-item>
</el-descriptions>
<el-descriptions
title="通报完成情况"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="时间名称">{{
form.timeName
}}</el-descriptions-item>
<el-descriptions-item label="通报数量">{{
form.tbCount
}}</el-descriptions-item>
<el-descriptions-item label="完成期数">{{
form.overCount
}}</el-descriptions-item>
<el-descriptions-item label="完成比例">{{
form.overScale
}}</el-descriptions-item>
<el-descriptions-item label="年份">{{
form.year
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listTbwc, getTbwc, delTbwc, addTbwc, updateTbwc, exportTbwc } from "@/api/tcZz/networkSecurity/tbwc";
export default {
name: "Tbwc",
//
data() {
return {
tableHeigth: 0,
//
infoOpen:false,
//
infoTitle:'',
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
tbwcList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
timeName: null,
import {
listTbwc,
getTbwc,
delTbwc,
addTbwc,
updateTbwc,
exportTbwc,
} from "@/api/tcZz/networkSecurity/tbwc";
export default {
name: "Tbwc",
//
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle: "",
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
tbwcList: [],
//
title: "",
//
open: false,
//
daterangeCreateTime: [],
//
daterangeUpdateTime: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
id: null,
timeName: null,
tbCount: null,
overCount: null,
overScale: null,
year: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询通报完成情况列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && "" != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] =
this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listTbwc(this.queryParams).then((response) => {
this.tbwcList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
tbCount: null,
timeName: null,
overCount: null,
tbCount: null,
overScale: null,
overCount: null,
year: null,
overScale: null,
createBy: null,
year: null,
createTime: null,
createBy: null,
updateBy: null,
createTime: null,
updateTime: null,
updateBy: null,
remark: null,
updateTime: null,
},
//
form: {},
//
rules: {
}
remark: null,
};
this.resetForm("form");
},
created() {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
methods: {
/** 查询通报完成情况列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0];
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1];
}
if (null != this.daterangeUpdateTime && '' != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] = this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listTbwc(this.queryParams).then(response => {
this.tbwcList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
timeName: null,
tbCount: null,
overCount: null,
overScale: null,
year: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
remark: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/**查看按钮操作 */
handleInfo(row){
this.reset();
const id = row.id || this.ids
getTbwc(id).then(response => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看通报完成情况详情"
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
/** 重置按钮操作 */
resetQuery() {
this.daterangeCreateTime = [];
this.daterangeUpdateTime = [];
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
/**查看按钮操作 */
handleInfo(row) {
this.reset();
const id = row.id || this.ids;
getTbwc(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看通报完成情况详情";
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加通报完成情况";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getTbwc(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "添加通报完成情况";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getTbwc(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改通报完成情况";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateTbwc(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTbwc(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
this.title = "修改通报完成情况";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateTbwc(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTbwc(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return delTbwc(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有通报完成情况数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/networkSecurity/tbwc/export', {
...this.queryParams
}, '通报完成情况_'+ new Date().getTime() +'.xlsx')
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm("是否确认导出所有通报完成情况数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/tcZz/networkSecurity/tbwc/export",
{
...this.queryParams,
},
"通报完成情况_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

Loading…
Cancel
Save