Compare commits

..

No commits in common. 'dev' and 'lijinlong' have entirely different histories.

@ -4,6 +4,6 @@ ENV = 'development'
# base api # base api
VUE_APP_BASE_API = '/dashboard' VUE_APP_BASE_API = '/dashboard'
VUE_APP_BASE_API2 = 'http://39.101.188.84:9027' VUE_APP_BASE_API2 = 'http://192.168.0.109:9027'
BASE_API = 'http://10.10.3.35:9070' BASE_API = 'http://10.10.3.35:9070'

@ -59,11 +59,3 @@ export function departmentList(data) {
params: data, params: data,
}); });
} }
// 查询安全隐患统计列表
export function listCounty(query) {
return request({
url: "/zongzhi/county/list",
method: "get",
params: query,
});
}

@ -1,5 +1,5 @@
<template> <template>
<!-- <div class="pc"> --> <div class="pc">
<div class="container"> <div class="container">
<div class="main-container"> <div class="main-container">
<div class="top_nav"> <div class="top_nav">
@ -70,7 +70,7 @@
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
<!-- </div> --> </div>
</template> </template>
<script> <script>

@ -6,8 +6,8 @@
<div class="safetyBox"> <div class="safetyBox">
<div v-for="(item, idx) in safetyList" :key="idx"> <div v-for="(item, idx) in safetyList" :key="idx">
<div class="safetyBox_item"> <div class="safetyBox_item">
<div class="pone">{{ item.totalNum | commaFilter }}</div> <div class="pone">{{ item.value | commaFilter }}</div>
<div class="ptwo">{{ item.typeName }}</div> <div class="ptwo">{{ item.title }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -236,7 +236,7 @@
</template> </template>
<script> <script>
import { safeRisks, tbFinish, listCounty } from "@/api/wlSafe"; import { safeRisks, tbFinish } from "@/api/wlSafe";
import { listDanger, getDanger, listTb, getTb } from "@/api/zongzhi/st.js"; import { listDanger, getDanger, listTb, getTb } from "@/api/zongzhi/st.js";
import vueSeamlessScroll from "vue-seamless-scroll"; import vueSeamlessScroll from "vue-seamless-scroll";
import ModuleTitle from "../../common/ModuleTitle.vue"; import ModuleTitle from "../../common/ModuleTitle.vue";
@ -292,36 +292,36 @@ export default {
trouble: { options: ["最新隐患", "通报处置"] }, trouble: { options: ["最新隐患", "通报处置"] },
// //
safetyList: [ safetyList: [
// { {
// title: "", title: "敏感信息泄露漏洞",
// value: 0, value: 0,
// type: 1, type: 1,
// }, },
// { {
// title: "访", title: "权限许可和访问控制",
// type: 2, type: 2,
// value: 0, value: 0,
// }, },
// { {
// title: "", title: "未加密登录请求",
// value: 0, value: 0,
// type: 3, type: 3,
// }, },
// { {
// title: "", title: "其他",
// type: 6, type: 6,
// value: 0, value: 0,
// }, },
// { {
// title: "", title: "应用程序测试脚本漏洞",
// type: 4, type: 4,
// value: 0, value: 0,
// }, },
// { {
// title: "", title: "文件上传漏洞",
// type: 5, type: 5,
// value: 0, value: 0,
// }, },
], ],
// //
notificationFinishList: [ notificationFinishList: [
@ -450,15 +450,14 @@ export default {
* 安全隐患大屏数据 * 安全隐患大屏数据
*/ */
safeListDP() { safeListDP() {
listCounty().then((res) => { safeRisks().then((res) => {
this.safetyList = res.rows; res.data.forEach((value, index) => {
// res.data.forEach((value, index) => { this.safetyList.forEach((value1, index1) => {
// this.safetyList.forEach((value1, index1) => { if (value.type == value1.type) {
// if (value.type == value1.type) { this.safetyList[index1].value = value.count;
// this.safetyList[index1].value = value.count; }
// } });
// }); });
// });
}); });
}, },
/** /**

@ -26,7 +26,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
// publicPath: './', // publicPath: './',
publicPath: "/demo/taicangzongzhi", publicPath: "/demo/taicangzongzhi2",
outputDir: "dist", outputDir: "dist",
assetsDir: "static", assetsDir: "static",
lintOnSave: process.env.NODE_ENV === "development", lintOnSave: process.env.NODE_ENV === "development",

Loading…
Cancel
Save