| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div style="display: flex;flex-direction: row;min-width: 158px;max-width: 158px;margin-bottom: 5px;border-radius: 1px; user-select: none"> |
| | | <div @click="clickTab(0)" class="tab" :class="{tabActive: 0 === queryParams.dataType, tabInactive: 0 !== queryParams.dataType}">全部</div> |
| | | <div @click="clickTab(1)" class="tab" :class="{tabActive: 1 === queryParams.dataType, tabInactive: 1 !== queryParams.dataType}">省厅考核</div> |
| | | <div |
| | | style="display: flex;flex-direction: row;min-width: 158px;max-width: 158px;margin-bottom: 5px;border-radius: 1px; user-select: none" |
| | | v-show="index !== 'image_resource_security'"> |
| | | <div @click="clickTab(0)" class="tab" |
| | | :class="{tabActive: 0 === queryParams.dataType, tabInactive: 0 !== queryParams.dataType}">全部 |
| | | </div> |
| | | <div @click="clickTab(1)" class="tab" |
| | | :class="{tabActive: 1 === queryParams.dataType, tabInactive: 1 !== queryParams.dataType}">省厅考核 |
| | | </div> |
| | | </div> |
| | | <el-card class="box-card" v-show="index !== 'image_resource_security'"> |
| | | <el-row style="display: flex; flex-direction: row; align-items: center" justify="space-between"> |
| | | <div style="font-size: 18px;min-width: 200px;height: 80px;display: flex;align-items: center">{{ruleName}}</div> |
| | | <div v-if="cardList && cardList.length > 0" v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px;margin-left: 20px;align-items: center" :key="card.label"> |
| | | <div style="font-size: 18px;min-width: 200px;height: 80px;display: flex;align-items: center">{{ ruleName }} |
| | | </div> |
| | | <div v-if="cardList && cardList.length > 0" v-for="card in cardList" |
| | | style="display: flex;flex-direction: row; margin-right: 50px;margin-left: 20px;align-items: center" |
| | | :key="card.label"> |
| | | <div> |
| | | <div class="icon-container"> |
| | | <i :class="card.icon"></i> |
| | |
| | | <el-col :span="8"></el-col> |
| | | </el-row> |
| | | </el-card> |
| | | |
| | | <div style="display: flex;position: relative"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form-item label="关键词" prop="bayonetNumber"> |
| | | <el-input v-model="queryParams.keyword" placeholder="关键词搜索" clearable @input="handleQuery"/> |
| | | </el-form-item> |
| | | <el-form-item label="时间范围" prop="timeRange"> |
| | | <el-date-picker |
| | | v-model="queryParams.timeRange" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <right-toolbar style="position: absolute;right: 0px" v-show="index !== 'image_resource_security'" :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar> |
| | | </div> |
| | | |
| | | |
| | | <el-row :gutter="10" class="mb8" v-show="index === 'image_resource_security'"> |
| | | <el-container> |
| | | <el-main> |
| | | <h2>视频图像资源安全管理</h2> |
| | | <el-row :gutter="20"> |
| | | <el-col :xl="3" :lg="3" :md="6" :sm="6" :xs="12" v-if="imageResourceSecurity && imageResourceSecurity.length > 0" v-for="(item, index) in imageResourceSecurity" :key="index" |
| | | class="col-margin"> |
| | | <el-col :xl="3" :lg="3" :md="6" :sm="6" :xs="12" |
| | | v-if="imageResourceSecurity && imageResourceSecurity.length > 0" |
| | | v-for="(item, index) in imageResourceSecurity" :key="index" |
| | | class="col-margin"> |
| | | <el-card style=" |
| | | min-width: 150px; |
| | | width: 100%; |
| | |
| | | </el-row> |
| | | </el-main> |
| | | </el-container> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handleExport" |
| | | v-hasPermi="['platform:platform:export']">导入 |
| | | </el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | |
| | | </el-row> |
| | | <div style="display: flex;position: relative"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form-item label="关键词" prop="bayonetNumber"> |
| | | <el-input v-model="queryParams.keyword" placeholder="关键词搜索" clearable @input="handleQuery"/> |
| | | </el-form-item> |
| | | <el-form-item label="时间范围" prop="timeRange"> |
| | | <el-date-picker |
| | | v-model="queryParams.timeRange" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <right-toolbar style="position: absolute;right: 0px" v-show="index !== 'image_resource_security'" :showSearch.sync="showSearch" @queryTable="handleQuery" |
| | | :columns="showList"></right-toolbar> |
| | | </div> |
| | | |
| | | <div v-show="index === 'image_resource_security'" style="margin-bottom: 5px"> |
| | | <el-button type="primary" plain icon="el-icon-upload" size="mini" @click="handleExport" |
| | | v-hasPermi="['platform:platform:export']">导入 |
| | | </el-button> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </div> |
| | | |
| | | <div> |
| | | <el-table v-loading="loading" :data="tableData.list"> |
| | | <el-table-column :prop="item.prop" :label="item.label" :width="item.width" v-for="(item, index) in tableHead" :key="index" v-if="showListPD(item)"/> |
| | | <el-table-column :prop="item.prop" :label="item.label" :width="item.width" v-for="(item, index) in tableHead" |
| | | :key="index" v-if="showListPD(item)"/> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" /> |
| | | @pagination="getList"/> |
| | | |
| | | <!-- 修改视频图像资源安全管理对话框 --> |
| | | <el-dialog title="修改视频图像资源安全管理" :visible.sync="resourceOpen" width="600px" append-to-body> |
| | | <el-form ref="form" :model="resourceForm" :rules="rules" label-width="250px"> |
| | | <el-form-item label="部门名称" prop="deptName"> |
| | | <el-input v-model="resourceForm.deptName" disabled /> |
| | | <el-input v-model="resourceForm.deptName" disabled/> |
| | | </el-form-item> |
| | | <el-form-item label="平台运行率" prop="platformOnline"> |
| | | <el-input-number v-model="resourceForm.platformOnline" :precision="2" :step="0.1" :min="0" :max="1"/> |
| | |
| | | <el-form-item label="视频传输网危险资产比例" prop="riskProperty"> |
| | | <el-input-number v-model="resourceForm.riskProperty" :precision="2" :step="0.1" :min="0" :max="1"/> |
| | | </el-form-item> |
| | | <el-tooltip class="item" effect="dark" content="违规连接互联网扣减20个百分点/次,违规无线AP接入、随身wifi接入、共享网络各扣减5个百分点/次,直至此项指标扣完为止。" placement="top-start"> |
| | | <el-tooltip class="item" effect="dark" content="违规连接互联网扣减20个百分点/次,违规无线AP接入、随身wifi接入、共享网络各扣减5个百分点/次,直至此项指标扣完为止。" |
| | | placement="top-start"> |
| | | <el-form-item label="视频传输网边界完整性检测扣分项" prop="boundaryIntegrity"> |
| | | <el-input-number v-model="resourceForm.boundaryIntegrity" :precision="2" :step="0.1" :min="0" :max="1"/> |
| | | </el-form-item> |
| | |
| | | <!-- 导入对话框 --> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> |
| | | <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url" |
| | | :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" |
| | | :auto-upload="false" drag> |
| | | :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" |
| | | :auto-upload="false" drag> |
| | | <i class="el-icon-upload"></i> |
| | | <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> |
| | | <div class="el-upload__tip text-center" slot="tip"> |
| | | <span>仅允许导入xls、xlsx格式文件。</span> |
| | | <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" |
| | | @click="importTemplate">下载模板</el-link> |
| | | @click="importTemplate">下载模板 |
| | | </el-link> |
| | | </div> |
| | | </el-upload> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { dataCenter } from "@/api/platform/data-center"; |
| | | import { videoData, carData, faceData, equipment } from "./list"; |
| | | import { listSecurity, updateSecurity } from '@/api/platform/resource-security'; |
| | | import { getToken } from "@/utils/auth"; |
| | | import {dataCenter} from "@/api/platform/data-center"; |
| | | import {videoData, carData, faceData, equipment} from "./list"; |
| | | import {listSecurity, updateSecurity} from '@/api/platform/resource-security'; |
| | | import {getToken} from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: "Platform", |
| | | computed: { |
| | |
| | | // 是否禁用上传 |
| | | isUploading: false, |
| | | // 设置上传的请求头部 |
| | | headers: { Authorization: "Bearer " + getToken() }, |
| | | headers: {Authorization: "Bearer " + getToken()}, |
| | | // 上传的地址 |
| | | url: process.env.VUE_APP_BASE_API + "/platform/resourceSecurity/importData" |
| | | }, |
| | |
| | | // 表单校验 |
| | | rules: { |
| | | platformOnline: [ |
| | | { required: true, message: "请输入平台运行率", trigger: "blur" }, |
| | | { type: "number", message: "平台运行率必须为数字", trigger: "blur" } |
| | | {required: true, message: "请输入平台运行率", trigger: "blur"}, |
| | | {type: "number", message: "平台运行率必须为数字", trigger: "blur"} |
| | | ], |
| | | propertyAccuracy: [ |
| | | { required: true, message: "请输入视频传输网资产准确率", trigger: "blur" }, |
| | | { type: "number", message: "视频传输网资产准确率必须为数字", trigger: "blur" } |
| | | {required: true, message: "请输入视频传输网资产准确率", trigger: "blur"}, |
| | | {type: "number", message: "视频传输网资产准确率必须为数字", trigger: "blur"} |
| | | ], |
| | | riskProperty: [ |
| | | { required: true, message: "请输入弱口令得分", trigger: "blur" }, |
| | | { type: "number", message: "弱口令得分必须为数字", trigger: "blur" } |
| | | {required: true, message: "请输入弱口令得分", trigger: "blur"}, |
| | | {type: "number", message: "弱口令得分必须为数字", trigger: "blur"} |
| | | ], |
| | | boundaryIntegrity: [ |
| | | { required: true, message: "请输入视频传输网危险资产比例", trigger: "blur" }, |
| | | { type: "number", message: "视频传输网危险资产比例必须为数字", trigger: "blur" } |
| | | {required: true, message: "请输入视频传输网危险资产比例", trigger: "blur"}, |
| | | {type: "number", message: "视频传输网危险资产比例必须为数字", trigger: "blur"} |
| | | ], |
| | | |
| | | }, |
| | |
| | | let day = yesterday.getDate().toString().padStart(2, '0'); |
| | | |
| | | // 拼接成 yyyy-MM-dd 格式 |
| | | let yesterday1 = `${year}-${month}-${day}`; |
| | | let yesterday1 = `${year}-${month}-${day}`; |
| | | this.queryParams.timeRange = [yesterday1, yesterday1] |
| | | this.index = this.$route.query.index; |
| | | if (this.$route.query.type === '1') { |
| | |
| | | return true |
| | | } |
| | | let arr = this.showList.filter(d => d.label === item.label) |
| | | if (item && (!arr || arr.length <1)) { |
| | | if (item && (!arr || arr.length < 1)) { |
| | | return true; |
| | | } else { |
| | | return item && arr && arr.length > 0 && arr[0].visible |
| | |
| | | this.queryParams.endTime = this.queryParams.timeRange[1] |
| | | } |
| | | dataCenter(url, this.queryParams).then(response => { |
| | | response.data.list = response.data.list && response.data.list.length >0 ? response.data.list : [] |
| | | response.data.list = response.data.list && response.data.list.length > 0 ? response.data.list : [] |
| | | this.tableData = response.data; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | .tab { |
| | | padding: 5px 15px; |
| | | } |
| | | |
| | | .tab:hover { |
| | | cursor: pointer; |
| | | user-select: none; |
| | | } |
| | | |
| | | .tabActive { |
| | | color: white; |
| | | background-color: #409eff; |
| | | border: none; |
| | | border-radius: 1px; |
| | | } |
| | | |
| | | .tabInactive { |
| | | background-color: #edf2f6; |
| | | color: #409eff; |
| | | } |
| | | |
| | | .tabInactive:hover { |
| | | background-color: #edf2f6; |
| | | } |
| | | |
| | | .box-card { |
| | | background-color: #F5F9FE; |
| | | width: 100%; |