龚焕茏
2024-08-27 d5aac4dbc0934569fc45df090d647d33d2d361f7
feat:图像资源计算定时任务完善
1个文件已修改
92 ■■■■ 已修改文件
src/views/system/data-manage/data-detail/index.vue 92 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/data-manage/data-detail/index.vue
@@ -54,12 +54,12 @@
                  <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>
@@ -73,7 +73,7 @@
      <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>
@@ -82,21 +82,21 @@
    <!-- 修改视频图像资源安全管理对话框 -->
    <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" />
@@ -133,7 +133,7 @@
<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",
@@ -242,9 +242,6 @@
      this.cardList = data.card;
    }
    this.getList();
    if (this.index === 'image_resource_security') {
      this.getSecurityCard()
    }
  },
  methods: {
    /** 修改按钮操作 */
@@ -258,7 +255,7 @@
      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();
@@ -275,13 +272,16 @@
    /** 查询图像资源安全当月配置信息 */
    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;
@@ -311,66 +311,12 @@
    },
    /** 搜索按钮操作 */
    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() {