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 @@