From d5aac4dbc0934569fc45df090d647d33d2d361f7 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 27 八月 2024 13:37:58 +0800
Subject: [PATCH] feat:图像资源计算定时任务完善
---
src/views/system/data-manage/data-detail/index.vue | 92 +++++++++------------------------------------
1 files changed, 19 insertions(+), 73 deletions(-)
diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue
index c26388a..068e59f 100644
--- a/src/views/system/data-manage/data-detail/index.vue
+++ b/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() {
--
Gitblit v1.8.0