From 12fd8f6b04b26ef02bccdf5fd0bcefb59541c7f6 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期三, 02 十一月 2022 17:04:23 +0800
Subject: [PATCH] :预警研判
---
src/utils/helper.js | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/utils/helper.js b/src/utils/helper.js
index 1df5e96..25f8baf 100644
--- a/src/utils/helper.js
+++ b/src/utils/helper.js
@@ -33,6 +33,18 @@
})
return arr;
}
+// 鑾峰彇瀛楀吀琛�2
+export async function getCodeList(code){
+ let arr;
+ await myrequest({
+ method: 'get',
+ url: `/sccg/dict/queryByCode?code=${code}`
+ })
+ .then(res => {
+ arr = res.data;
+ })
+ return arr;
+}
export async function myDownLoad(arr){
let fileName = arr.headers['content-disposition'];
console.log(fileName);
@@ -66,6 +78,17 @@
}
return;
}
+// 鑾峰彇骞存湀鏃ユ椂鍒嗙
+export function getNowDate(time){
+ const result = new Date(time);
+ let yy = result.getFullYear(),
+ mm = result.getMonth()+1,
+ dd = result.getDate(),
+ hh = result.getHours(),
+ mi = result.getMinutes(),
+ ss = result.getSeconds()
+ return yy+'-'+ fillTime(mm)+'-'+fillTime(dd)+" "+fillTime(hh)+':'+fillTime(mi) + ':' + fillTime(ss);
+}
function filterTime(time) {
if (time < 0) {
return '宸查�炬湡';
--
Gitblit v1.8.0