From 4326768a2b904c5fbf195a1856776c3d51d91ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=B6=E7=A6=8F?= <> Date: Sun, 25 Jun 2023 17:06:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bootstrap.ts | 4 +- src/service/task.service.ts | 5 ++ src/views/hiddenDanger/common.component.html | 46 +++++++---- src/views/hiddenDanger/files.component.vue | 66 ++++++++-------- .../hiddenDanger/safe/action.component.vue | 79 +++++++++++++++++-- .../hiddenDanger/safe/plan.component.vue | 41 +++++----- 6 files changed, 164 insertions(+), 77 deletions(-) diff --git a/src/bootstrap.ts b/src/bootstrap.ts index f6ffe83..8aa8fc0 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -12,9 +12,9 @@ import Mock from "mockjs" // import { MockData } from './mock'; Vue.config.productionTip = false; -// Vue.config.warnHandler = ()=>{ +Vue.config.warnHandler = ()=>{ -// } +} document.title = process.env.VUE_APP_TITLE || '汉邦唐全真数字服务平台'; // if(process.env.NODE_ENV==="development"){ diff --git a/src/service/task.service.ts b/src/service/task.service.ts index 7e472b7..9f685b2 100644 --- a/src/service/task.service.ts +++ b/src/service/task.service.ts @@ -54,4 +54,9 @@ export default class TaskService extends BaseService{ const url = this.prefix.prevention+'/danger/trouble/list'; return this.get(url,params,true) } + + public addRecord(params: any,showLoading?:boolean):Promise>>{ + const url = this.prefix.prevention+'/danger/record'; + return this.post(url,params,{},showLoading) + } } diff --git a/src/views/hiddenDanger/common.component.html b/src/views/hiddenDanger/common.component.html index 584d023..3aa6ec3 100644 --- a/src/views/hiddenDanger/common.component.html +++ b/src/views/hiddenDanger/common.component.html @@ -19,7 +19,7 @@