From d718d60652d54ffe364086754a0a3a85d3431a00 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Mon, 13 Dec 2021 13:47:53 +0800 Subject: [PATCH] update --- report-ui/src/api/helpCenter/helpCenter.js | 36 -------------------- report-ui/src/filter/index.js | 26 +++++++------- report-ui/src/views/dict/index.vue | 4 +-- report-ui/src/views/fileManagement/index.vue | 4 +-- 4 files changed, 17 insertions(+), 53 deletions(-) delete mode 100644 report-ui/src/api/helpCenter/helpCenter.js diff --git a/report-ui/src/api/helpCenter/helpCenter.js b/report-ui/src/api/helpCenter/helpCenter.js deleted file mode 100644 index 31c0f14a..00000000 --- a/report-ui/src/api/helpCenter/helpCenter.js +++ /dev/null @@ -1,36 +0,0 @@ -import request from '@/api/axios' - -// 查询字典 -export function queryForCodeSelect(params={}) { - return request({ - url: '/auth-service/dict/queryForCodeSelect', - method: 'post', - data: params - }) -} - -// 查询标题 -export function querytitleByCategory(params) { - return request({ - url: '/auth-service/help/querytitleByCategory', - method: 'post', - data: params - }) -} - -// 关键词查询 -export function searchKeyWord(params = {}) { - return request({ - url: '/auth-service/help/searchKeyWord', - method: 'post', - data: params - }) -} - -export function queryById(data) { - return request({ - url: '/auth-service/help/queryById', - method: 'post', - data - }) -} diff --git a/report-ui/src/filter/index.js b/report-ui/src/filter/index.js index 9685a2c9..0fee8a7a 100644 --- a/report-ui/src/filter/index.js +++ b/report-ui/src/filter/index.js @@ -4,7 +4,7 @@ * @Author: qianlishi * @Date: 2021-12-11 14:48:27 * @LastEditors: qianlishi - * @LastEditTime: 2021-12-13 10:15:29 + * @LastEditTime: 2021-12-13 13:40:00 */ import { getStorageItem } from '@/utils/storage'; @@ -46,18 +46,18 @@ export function getDataByCode(keyCode) { //保留两位小数 export function fixed(value){ -let intVal = null; -if(typeof value == 'string' && /^[0-9.]+$/.test(value)){ - intVal = parseInt(value); -} -if(typeof value == 'number'){ - intVal = value; -} -if(intVal == null){ - return value; -}else{ - return (Math.round(value*100)/100).toFixed(2); -} + let intVal = null; + if(typeof value == 'string' && /^[0-9.]+$/.test(value)){ + intVal = parseInt(value); + } + if(typeof value == 'number'){ + intVal = value; + } + if(intVal == null){ + return value; + }else{ + return (Math.round(value*100)/100).toFixed(2); + } } // 时间戳转日期 diff --git a/report-ui/src/views/dict/index.vue b/report-ui/src/views/dict/index.vue index 3e8f872f..6639518d 100644 --- a/report-ui/src/views/dict/index.vue +++ b/report-ui/src/views/dict/index.vue @@ -4,7 +4,7 @@ * @Author: qianlishi * @Date: 2021-12-11 14:48:27 * @LastEditors: qianlishi - * @LastEditTime: 2021-12-13 13:18:11 + * @LastEditTime: 2021-12-13 13:46:33 -->