| | |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleResourceUpdate(item)">修改 |
| | | </el-button> |
| | | </div> |
| | | <div style="font-size: 14px;height: 50px; font-weight: bold;">部门名称:{{ 0 }}</div> |
| | | <div style="font-size: 14px;">平台运行率:{{ 1 }}</div> |
| | | <div style="font-size: 14px;">视频传输网资产准确率:{{ 1 }}</div> |
| | | <div style="font-size: 14px;">弱口令得分:{{ 1 }}</div> |
| | | <div style="font-size: 14px;">视频传输网危险资产比例:{{ 1 }}</div> |
| | | <div style="font-size: 14px;">视频传输网边界完整性检测扣分项:{{ 1 }}</div> |
| | | <div style="font-size: 14px;height: 50px; font-weight: bold;">{{ item.deptName }}</div> |
| | | <div style="font-size: 14px;">平台运行率:{{ item.platformOnline }}</div> |
| | | <!-- <div style="font-size: 14px;">视频传输网资产准确率:{{ item.propertyAccuracy }}</div> |
| | | <div style="font-size: 14px;">弱口令得分:{{ item.weakPassword }}</div> |
| | | <div style="font-size: 14px;">视频传输网危险资产比例:{{ item.riskProperty }}</div> |
| | | <div style="font-size: 14px;">视频传输网边界完整性检测扣分项:{{ item.boundaryIntegrity }}</div> --> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="platformList" @selection-change="handleSelectionChange"> |
| | | <el-table v-loading="loading" :data="platformList"> |
| | | <el-table-column :prop="item.prop" :label="item.label" v-for="(item, index) in tableHead" :key="index" /> |
| | | </el-table> |
| | | |
| | |
| | | |
| | | <!-- 修改视频图像资源安全管理对话框 --> |
| | | <el-dialog title="修改视频图像资源安全管理" :visible.sync="resourceOpen" width="600px" append-to-body> |
| | | <el-form ref="form" :model="resourceForm" :rules="rules" label-width="80px"> |
| | | <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-form-item> |
| | | <el-form-item label="规则权重" prop="platformOnline"> |
| | | <el-form-item label="平台运行率" prop="platformOnline"> |
| | | <el-input-number v-model="resourceForm.platformOnline" /> |
| | | </el-form-item> |
| | | <el-form-item label="视频传输网资产准确率" prop="propertyAccuracy"> |
| | | <el-input-number v-model="resourceForm.propertyAccuracy" /> |
| | | </el-form-item> |
| | | <el-form-item label="弱口令得分" prop="riskProperty"> |
| | | <el-input-number v-model="resourceForm.riskProperty" /> |
| | | <el-form-item label="弱口令得分" prop="weakPassword"> |
| | | <el-input-number v-model="resourceForm.weakPassword" /> |
| | | </el-form-item> |
| | | <el-form-item label="视频传输网危险资产比例" prop="boundaryIntegrity"> |
| | | <el-input-number v-model="resourceForm.boundaryIntegrity" /> |
| | | <el-form-item label="视频传输网危险资产比例" prop="riskProperty"> |
| | | <el-input-number v-model="resourceForm.riskProperty" /> |
| | | </el-form-item> |
| | | <el-form-item label="视频传输网边界完整性检测扣分项" prop="boundaryIntegrity"> |
| | | <el-input-number v-model="resourceForm.boundaryIntegrity" /> |
| | |
| | | <script> |
| | | import { dataCenter } from "@/api/platform/data-center"; |
| | | import { videoData, carData, faceData, equipment } from "./list"; |
| | | import { listSecurity } from '@/api/platform/resource-security'; |
| | | import { listSecurity, updateSecurity } from '@/api/platform/resource-security'; |
| | | import { getToken } from "@/utils/auth"; |
| | | export default { |
| | | name: "Platform", |
| | |
| | | this.cardList = data.card; |
| | | } |
| | | this.getList(); |
| | | if (this.index === 'image_resource_security') { |
| | | this.getSecurityCard() |
| | | } |
| | | }, |
| | | methods: { |
| | | /** 修改按钮操作 */ |
| | |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.resourceForm.id != null) { |
| | | updateWeight(this.resourceForm).then(() => { |
| | | updateSecurity(this.resourceForm).then(() => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.resourceOpen = false; |
| | | this.getList(); |
| | |
| | | /** 查询图像资源安全当月配置信息 */ |
| | | getSecurityCard() { |
| | | listSecurity().then(response => { |
| | | this.imageResourceSecurity = response.data; |
| | | this.imageResourceSecurity = response.rows; |
| | | }) |
| | | }, |
| | | /** 查询卡口过车数据一致性列表 */ |
| | | getList() { |
| | | let url = this.$route.query.url; |
| | | this.loading = true; |
| | | if (this.index === 'image_resource_security') { |
| | | this.getSecurityCard() |
| | | } |
| | | dataCenter(url, this.queryParams).then(response => { |
| | | this.platformList = response.data; |
| | | this.total = response.total; |
| | |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id); |
| | | this.single = selection.length !== 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加卡口过车数据一致性"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | const id = row.id || this.ids; |
| | | getPlatform(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) { |
| | | updatePlatform(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addPlatform(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除卡口过车数据一致性编号为"' + ids + '"的数据项?').then(function () { |
| | | return delPlatform(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => { |
| | | }); |
| | | }, |
| | | /** 导入按钮操作 */ |
| | | handleExport() { |