网络安全

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,7 +1,13 @@
<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
: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"
@ -81,8 +87,16 @@
/>
</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-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>
@ -100,14 +114,16 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button>
>删除</el-button
>
<el-button
type="warning"
size="mini"
@ -117,13 +133,23 @@
>导出</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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -137,13 +163,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:mtlx:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -157,9 +185,20 @@
/>
<!-- 添加或修改媒体类型对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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>
@ -184,24 +223,37 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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
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-item label="备注">{{ form.remark }}</el-descriptions-item>
<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";
import {
listMtlx,
getMtlx,
delMtlx,
addMtlx,
updateMtlx,
exportMtlx,
} from "@/api/tcZz/netWorkYq/mtlx";
export default {
name: "Mtlx",
//
@ -211,7 +263,7 @@
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -255,34 +307,32 @@
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
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];
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];
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 => {
listMtlx(this.queryParams).then((response) => {
this.mtlxList = response.rows;
this.total = response.total;
this.loading = false;
@ -311,7 +361,6 @@
updateTime: null,
remark: null,
};
this.resetForm("form");
},
@ -329,18 +378,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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 => {
const id = row.id || this.ids;
getMtlx(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看媒体类型详情"
this.infoTitle = "查看媒体类型详情";
});
},
/** 新增按钮操作 */
@ -352,8 +401,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getMtlx(id).then(response => {
const id = row.id || this.ids;
getMtlx(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改媒体类型";
@ -361,16 +410,16 @@
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateMtlx(this.form).then(response => {
updateMtlx(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addMtlx(this.form).then(response => {
addMtlx(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -385,29 +434,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delMtlx(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有媒体类型数据项?', "警告", {
this.$confirm("是否确认导出所有媒体类型数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/mtlx/export', {
...this.queryParams
}, '媒体类型_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/mtlx/export",
{
...this.queryParams,
},
"媒体类型_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,7 +1,13 @@
<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
: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"
@ -99,8 +105,16 @@
/>
</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-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>
@ -118,14 +132,16 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button>
>删除</el-button
>
<el-button
type="warning"
size="mini"
@ -135,7 +151,11 @@
>导出</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" />
@ -143,7 +163,13 @@
<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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -157,13 +183,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxlnum:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -177,20 +205,43 @@
/>
<!-- 添加或修改舆情信息量统计对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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-input
v-model="form.count1"
placeholder="请输入本地相关信息数量"
/>
</el-form-item>
<el-form-item label="本地敏感信息数量" prop="count2">
<el-input v-model="form.count2" placeholder="请输入本地敏感信息数量" />
<el-input
v-model="form.count2"
placeholder="请输入本地敏感信息数量"
/>
</el-form-item>
<el-form-item label="推送预警信息数量" prop="count3">
<el-input v-model="form.count3" placeholder="请输入推送预警信息数量" />
<el-input
v-model="form.count3"
placeholder="请输入推送预警信息数量"
/>
</el-form-item>
<el-form-item label="聚焦本地媒体数量" prop="count4">
<el-input v-model="form.count4" placeholder="请输入聚焦本地媒体数量" />
<el-input
v-model="form.count4"
placeholder="请输入聚焦本地媒体数量"
/>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
@ -210,28 +261,47 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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
title="舆情信息量统计"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="本地相关信息数量">{{
form.count1
}}</el-descriptions-item>
<el-descriptions-item label="推送预警信息数量">{{ form.count3 }}</el-descriptions-item>
<el-descriptions-item label="本地敏感信息数量">{{
form.count2
}}</el-descriptions-item>
<el-descriptions-item label="聚焦本地媒体数量">{{ form.count4 }}</el-descriptions-item>
<el-descriptions-item label="推送预警信息数量">{{
form.count3
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</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";
import {
listYqxxlnum,
getYqxxlnum,
delYqxxlnum,
addYqxxlnum,
updateYqxxlnum,
exportYqxxlnum,
} from "@/api/tcZz/netWorkYq/yqxxlnum";
export default {
name: "Yqxxlnum",
//
@ -241,7 +311,7 @@
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -289,34 +359,32 @@
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
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];
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];
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 => {
listYqxxlnum(this.queryParams).then((response) => {
this.yqxxlnumList = response.rows;
this.total = response.total;
this.loading = false;
@ -349,7 +417,6 @@
updateTime: null,
remark: null,
};
this.resetForm("form");
},
@ -367,18 +434,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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 => {
const id = row.id || this.ids;
getYqxxlnum(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情信息量统计详情"
this.infoTitle = "查看舆情信息量统计详情";
});
},
/** 新增按钮操作 */
@ -390,8 +457,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getYqxxlnum(id).then(response => {
const id = row.id || this.ids;
getYqxxlnum(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改舆情信息量统计";
@ -399,16 +466,16 @@
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateYqxxlnum(this.form).then(response => {
updateYqxxlnum(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqxxlnum(this.form).then(response => {
addYqxxlnum(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -423,29 +490,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delYqxxlnum(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有舆情信息量统计数据项?', "警告", {
this.$confirm("是否确认导出所有舆情信息量统计数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/yqxxlnum/export', {
...this.queryParams
}, '舆情信息量统计_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/yqxxlnum/export",
{
...this.queryParams,
},
"舆情信息量统计_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,7 +1,13 @@
<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
: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"
@ -12,7 +18,12 @@
/>
</el-form-item> -->
<el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-select
v-model="queryParams.areaId"
placeholder="请选择区域"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
@ -22,7 +33,12 @@
</el-select>
</el-form-item>
<el-form-item label="启用/禁用" prop="isStatus">
<el-select v-model="queryParams.isStatus" placeholder="请选择启用/禁用" clearable size="small">
<el-select
v-model="queryParams.isStatus"
placeholder="请选择启用/禁用"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.tc_start"
:key="dict.value"
@ -32,7 +48,12 @@
</el-select>
</el-form-item>
<el-form-item label="类型" prop="type">
<el-select v-model="queryParams.type" placeholder="请选择类型" clearable size="small">
<el-select
v-model="queryParams.type"
placeholder="请选择类型"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.yq_type"
:key="dict.value"
@ -123,8 +144,16 @@
/>
</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-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>
@ -142,14 +171,16 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqxxltj:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqxxltj:remove']"
>删除</el-button>
>删除</el-button
>
<el-button
type="warning"
size="mini"
@ -159,7 +190,11 @@
>导出</el-button
>
</div>
<el-table v-loading="loading" :data="yqxxltjList" @selection-change="handleSelectionChange">
<el-table
v-loading="loading"
:data="yqxxltjList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="序号" align="center" prop="index" /> -->
<el-table-column label="区域" align="center" prop="areaId">
@ -176,7 +211,7 @@
<el-table-column label="来源" align="center" prop="source" />
<el-table-column label="时间" align="center" prop="dateTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.dateTime, '{y}-{m}-{d}') }}</span>
<span>{{ parseTime(scope.row.dateTime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="内容" align="center" prop="content" />
@ -194,7 +229,13 @@
></el-switch>
</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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -208,13 +249,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxltj:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqxxltj:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -228,9 +271,20 @@
/>
<!-- 添加或修改舆情信息量统计明細对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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
@ -247,7 +301,8 @@
v-for="dict in dict.type.tc_start"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
>{{ dict.label }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item label="类型" prop="type">
@ -267,15 +322,20 @@
<el-input v-model="form.source" placeholder="请输入来源" />
</el-form-item>
<el-form-item label="时间" prop="dateTime">
<el-date-picker clearable size="small"
<el-date-picker
clearable
size="small"
v-model="form.dateTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择时间">
placeholder="选择时间"
>
</el-date-picker>
</el-form-item>
<el-form-item label="内容">
<editor v-model="form.content" :min-height="192"/>
<el-input type="textarea" v-model="form.content" placeholder="请输入内容" />
<!-- <editor v-model="form.content" :min-height="192" /> -->
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" placeholder="请输入备注" />
@ -295,45 +355,70 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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="启用/禁用">{{ selectDictLabel(dict.type.tc_start,form.isStatus) }}</el-descriptions-item>
<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="类型">{{ selectDictLabel(dict.type.yq_type,form.type) }}</el-descriptions-item>
<el-descriptions-item label="启用/禁用">{{
selectDictLabel(dict.type.tc_start, form.isStatus)
}}</el-descriptions-item>
<el-descriptions-item label="标题">{{ form.title }}</el-descriptions-item>
<el-descriptions-item label="类型">{{
selectDictLabel(dict.type.yq_type, form.type)
}}</el-descriptions-item>
<el-descriptions-item label="来源">{{ form.source }}</el-descriptions-item>
<el-descriptions-item label="标题">{{
form.title
}}</el-descriptions-item>
<el-descriptions-item label="时间">{{ form.dateTime }}</el-descriptions-item>
<el-descriptions-item label="来源">{{
form.source
}}</el-descriptions-item>
<el-descriptions-item label="内容"><div v-html='form.content'></div></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="内容"
><div v-html="form.content"></div
></el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
</el-descriptions>
</el-dialog>
</div>
</template>
<script>
import { listYqxxltj, getYqxxltj, delYqxxltj, addYqxxltj, updateYqxxltj, exportYqxxltj } from "@/api/tcZz/netWorkYq/yqxxltj";
import {
listYqxxltj,
getYqxxltj,
delYqxxltj,
addYqxxltj,
updateYqxxltj,
exportYqxxltj,
} from "@/api/tcZz/netWorkYq/yqxxltj";
export default {
name: "Yqxxltj",
//
dicts: ['tc_area', 'tc_start', 'yq_type'],
dicts: ["tc_area", "tc_start", "yq_type"],
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -389,38 +474,36 @@
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询舆情信息量统计明細列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeDateTime && '' != this.daterangeDateTime) {
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];
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];
if (null != this.daterangeUpdateTime && "" != this.daterangeUpdateTime) {
this.queryParams.params["beginUpdateTime"] =
this.daterangeUpdateTime[0];
this.queryParams.params["endUpdateTime"] = this.daterangeUpdateTime[1];
}
listYqxxltj(this.queryParams).then(response => {
listYqxxltj(this.queryParams).then((response) => {
this.yqxxltjList = response.rows;
this.total = response.total;
this.loading = false;
@ -459,7 +542,6 @@
updateTime: null,
remark: null,
};
this.resetForm("form");
},
@ -478,18 +560,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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
getYqxxltj(id).then(response => {
const id = row.id || this.ids;
getYqxxltj(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情信息量统计明細详情"
this.infoTitle = "查看舆情信息量统计明細详情";
});
},
/** 新增按钮操作 */
@ -501,8 +583,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getYqxxltj(id).then(response => {
const id = row.id || this.ids;
getYqxxltj(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改舆情信息量统计明細";
@ -511,26 +593,30 @@
//
handleStatusChange(row) {
let text = row.isStatus === 1 ? "启用" : "停用";
this.$modal.confirm('确认要"' + text + '"吗?').then(function() {
this.$modal
.confirm('确认要"' + text + '"吗?')
.then(function () {
return updateYqxxltj({ id: row.id, isStatus: row.isStatus });
}).then(() => {
})
.then(() => {
this.$modal.msgSuccess(text + "成功");
}).catch(function() {
})
.catch(function () {
row.isStatus = row.isStatus === 1 ? 2 : 1;
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateYqxxltj(this.form).then(response => {
updateYqxxltj(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqxxltj(this.form).then(response => {
addYqxxltj(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -545,29 +631,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delYqxxltj(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有舆情信息量统计明細数据项?', "警告", {
this.$confirm("是否确认导出所有舆情信息量统计明細数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/yqxxltj/export', {
...this.queryParams
}, '舆情信息量统计明細_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/yqxxltj/export",
{
...this.queryParams,
},
"舆情信息量统计明細_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,7 +1,13 @@
<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
: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"
@ -12,7 +18,12 @@
/>
</el-form-item> -->
<el-form-item label="区域" prop="areaId">
<el-select v-model="queryParams.areaId" placeholder="请选择区域" clearable size="small">
<el-select
v-model="queryParams.areaId"
placeholder="请选择区域"
clearable
size="small"
>
<el-option
v-for="dict in dict.type.tc_area"
:key="dict.value"
@ -103,8 +114,16 @@
/>
</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-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>
@ -122,20 +141,20 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button>
>删除</el-button
>
<!-- @click="handleImport" -->
<el-button
type="info"
size="mini"
v-hasPermi="['system:user:import']"
>导入</el-button>
<el-button type="info" size="mini" v-hasPermi="['system:user:import']"
>导入</el-button
>
<el-button
type="warning"
size="mini"
@ -145,7 +164,11 @@
>导出</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">
@ -155,13 +178,19 @@
</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>
<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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -175,13 +204,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/netWorkYq:yqzs:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -195,9 +226,20 @@
/>
<!-- 添加或修改舆情走势图对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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
@ -209,11 +251,14 @@
</el-select>
</el-form-item>
<el-form-item label="日期" prop="dateTime">
<el-date-picker clearable size="small"
<el-date-picker
clearable
size="small"
v-model="form.dateTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
@ -240,39 +285,58 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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
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.remark }}</el-descriptions-item>
<el-descriptions-item label="日期">{{
form.dateTime
}}</el-descriptions-item>
<el-descriptions-item label="非敏感数量">{{ form.count1 }}</el-descriptions-item>
<el-descriptions-item label="备注">{{
form.remark
}}</el-descriptions-item>
<el-descriptions-item label="敏感数量">{{ form.count2 }}</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";
import {
listYqzs,
getYqzs,
delYqzs,
addYqzs,
updateYqzs,
exportYqzs,
} from "@/api/tcZz/netWorkYq/yqzs";
export default {
name: "Yqzs",
//
dicts: ['tc_area'],
dicts: ["tc_area"],
data() {
return {
tableHeigth: 0,
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -322,38 +386,36 @@
count1: null,
count2: null,
},
//
form: {},
//
rules: {
}
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询舆情走势图列表 */
getList() {
this.loading = true;
this.queryParams.params = {};
if (null != this.daterangeDateTime && '' != this.daterangeDateTime) {
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];
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];
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 => {
listYqzs(this.queryParams).then((response) => {
this.yqzsList = response.rows;
this.total = response.total;
this.loading = false;
@ -386,7 +448,6 @@
count1: null,
count2: null,
};
this.resetForm("form");
},
@ -405,18 +466,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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 => {
const id = row.id || this.ids;
getYqzs(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看舆情走势图详情"
this.infoTitle = "查看舆情走势图详情";
});
},
/** 新增按钮操作 */
@ -428,8 +489,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getYqzs(id).then(response => {
const id = row.id || this.ids;
getYqzs(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改舆情走势图";
@ -437,16 +498,16 @@
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateYqzs(this.form).then(response => {
updateYqzs(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addYqzs(this.form).then(response => {
addYqzs(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -461,29 +522,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delYqzs(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有舆情走势图数据项?', "警告", {
this.$confirm("是否确认导出所有舆情走势图数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/netWorkYq/yqzs/export', {
...this.queryParams
}, '舆情走势图_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/netWorkYq/yqzs/export",
{
...this.queryParams,
},
"舆情走势图_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,8 +1,13 @@
<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
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item label="名称" prop="cityName">
<el-input
v-model="queryParams.cityName"
@ -23,8 +28,16 @@
</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-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>
@ -42,14 +55,16 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button>
>删除</el-button
>
<el-button
type="warning"
size="mini"
@ -59,11 +74,21 @@
>导出</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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -77,13 +102,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:fbqk:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -97,9 +124,20 @@
/>
<!-- 添加或修改分布情况 tc_fbqk对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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>
@ -124,24 +162,37 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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
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-item label="备注">{{ form.remark }}</el-descriptions-item>
<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";
import {
listFbqk,
getFbqk,
delFbqk,
addFbqk,
updateFbqk,
exportFbqk,
} from "@/api/tcZz/networkSecurity/fbqk";
export default {
name: "Fbqk",
//
@ -151,7 +202,7 @@
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -195,34 +246,32 @@
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
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];
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];
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 => {
listFbqk(this.queryParams).then((response) => {
this.fbqkList = response.rows;
this.total = response.total;
this.loading = false;
@ -251,7 +300,6 @@
updateTime: null,
remark: null,
};
this.resetForm("form");
},
@ -269,18 +317,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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 => {
const id = row.id || this.ids;
getFbqk(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看分布情况 tc_fbqk详情"
this.infoTitle = "查看分布情况 tc_fbqk详情";
});
},
/** 新增按钮操作 */
@ -292,8 +340,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getFbqk(id).then(response => {
const id = row.id || this.ids;
getFbqk(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改分布情况 tc_fbqk";
@ -301,16 +349,16 @@
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateFbqk(this.form).then(response => {
updateFbqk(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addFbqk(this.form).then(response => {
addFbqk(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -325,29 +373,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delFbqk(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有分布情况 tc_fbqk数据项?', "警告", {
this.$confirm("是否确认导出所有分布情况 tc_fbqk数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/networkSecurity/fbqk/export', {
...this.queryParams
}, '分布情况 tc_fbqk_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/networkSecurity/fbqk/export",
{
...this.queryParams,
},
"分布情况 tc_fbqk_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

@ -1,8 +1,13 @@
<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
:model="queryParams"
ref="queryForm"
:inline="true"
v-show="showSearch"
label-width="auto"
>
<el-form-item label="时间名称" prop="timeName">
<el-input
v-model="queryParams.timeName"
@ -40,17 +45,28 @@
/>
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker clearable size="small"
<el-date-picker
clearable
size="small"
v-model="queryParams.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份">
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-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>
@ -68,14 +84,16 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
type="danger"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button>
>删除</el-button
>
<el-button
type="warning"
size="mini"
@ -85,7 +103,11 @@
>导出</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" />
@ -93,10 +115,16 @@
<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>
<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"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope">
<el-button
size="mini"
@ -110,13 +138,15 @@
size="mini"
@click="handleUpdate(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:edit']"
>修改</el-button>
>修改</el-button
>
<el-button
size="mini"
type="danger"
@click="handleDelete(scope.row)"
v-hasPermi="['tcZz/networkSecurity:tbwc:remove']"
>删除</el-button>
>删除</el-button
>
</template>
</el-table-column>
</el-table>
@ -130,9 +160,20 @@
/>
<!-- 添加或修改通报完成情况对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box">
<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
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>
@ -146,11 +187,14 @@
<el-input v-model="form.overScale" placeholder="请输入完成比例" />
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker clearable size="small"
<el-date-picker
clearable
size="small"
v-model="form.year"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择年份">
placeholder="选择年份"
>
</el-date-picker>
</el-form-item>
<el-form-item label="备注" prop="remark">
@ -171,30 +215,51 @@
:destroy-on-close="true"
custom-class="dialog-box"
>
<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
title="通报完成情况"
:column="2"
border
labelClassName="desLable"
>
<el-descriptions-item label="时间名称">{{
form.timeName
}}</el-descriptions-item>
<el-descriptions-item label="完成期数">{{ form.overCount }}</el-descriptions-item>
<el-descriptions-item label="通报数量">{{
form.tbCount
}}</el-descriptions-item>
<el-descriptions-item label="完成比例">{{ form.overScale }}</el-descriptions-item>
<el-descriptions-item label="完成期数">{{
form.overCount
}}</el-descriptions-item>
<el-descriptions-item label="年份">{{ form.year }}</el-descriptions-item>
<el-descriptions-item label="完成比例">{{
form.overScale
}}</el-descriptions-item>
<el-descriptions-item label="备注">{{ form.remark }}</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";
import {
listTbwc,
getTbwc,
delTbwc,
addTbwc,
updateTbwc,
exportTbwc,
} from "@/api/tcZz/networkSecurity/tbwc";
export default {
name: "Tbwc",
//
@ -204,7 +269,7 @@
//
infoOpen: false,
//
infoTitle:'',
infoTitle: "",
//
loading: true,
//
@ -254,34 +319,32 @@
updateTime: null,
remark: null,
},
//
form: {},
//
rules: {
}
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];
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];
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 => {
listTbwc(this.queryParams).then((response) => {
this.tbwcList = response.rows;
this.total = response.total;
this.loading = false;
@ -316,7 +379,6 @@
updateTime: null,
remark: null,
};
this.resetForm("form");
},
@ -334,18 +396,18 @@
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
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 => {
const id = row.id || this.ids;
getTbwc(id).then((response) => {
this.form = response.data;
this.infoOpen = true;
this.infoTitle = "查看通报完成情况详情"
this.infoTitle = "查看通报完成情况详情";
});
},
/** 新增按钮操作 */
@ -357,8 +419,8 @@
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getTbwc(id).then(response => {
const id = row.id || this.ids;
getTbwc(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改通报完成情况";
@ -366,16 +428,16 @@
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
updateTbwc(this.form).then(response => {
updateTbwc(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addTbwc(this.form).then(response => {
addTbwc(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@ -390,29 +452,37 @@
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
type: "warning",
})
.then(function () {
return delTbwc(ids);
}).then(() => {
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
})
.catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有通报完成情况数据项?', "警告", {
this.$confirm("是否确认导出所有通报完成情况数据项?", "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.download('/tcZz/networkSecurity/tbwc/export', {
...this.queryParams
}, '通报完成情况_'+ new Date().getTime() +'.xlsx')
type: "warning",
})
.then(() => {
this.download(
"/tcZz/networkSecurity/tbwc/export",
{
...this.queryParams,
},
"通报完成情况_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false;
}).catch(() => {});
}
}
}
})
.catch(() => {});
},
},
};
</script>

Loading…
Cancel
Save