qianlishi 3 years ago
parent 3460f0ea2d
commit d718d60652

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

@ -4,7 +4,7 @@
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-12-11 14:48:27 * @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi * @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 10:15:29 * @LastEditTime: 2021-12-13 13:40:00
*/ */
import { getStorageItem } from '@/utils/storage'; import { getStorageItem } from '@/utils/storage';
@ -46,18 +46,18 @@ export function getDataByCode(keyCode) {
//保留两位小数 //保留两位小数
export function fixed(value){ export function fixed(value){
let intVal = null; let intVal = null;
if(typeof value == 'string' && /^[0-9.]+$/.test(value)){ if(typeof value == 'string' && /^[0-9.]+$/.test(value)){
intVal = parseInt(value); intVal = parseInt(value);
} }
if(typeof value == 'number'){ if(typeof value == 'number'){
intVal = value; intVal = value;
} }
if(intVal == null){ if(intVal == null){
return value; return value;
}else{ }else{
return (Math.round(value*100)/100).toFixed(2); return (Math.round(value*100)/100).toFixed(2);
} }
} }
// 时间戳转日期 // 时间戳转日期

@ -4,7 +4,7 @@
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-12-11 14:48:27 * @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi * @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 13:18:11 * @LastEditTime: 2021-12-13 13:46:33
--> -->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
@ -99,7 +99,7 @@ export default {
}, },
// //
customButton: { customButton: {
operationWidth: 240 // row operationWidth: 160 // row
} }
}, },
// //

@ -4,7 +4,7 @@
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-12-11 14:48:27 * @Date: 2021-12-11 14:48:27
* @LastEditors: qianlishi * @LastEditors: qianlishi
* @LastEditTime: 2021-12-13 13:14:13 * @LastEditTime: 2021-12-13 13:47:02
--> -->
<template> <template>
<anji-crud ref="listPage" :option="crudOption"> <anji-crud ref="listPage" :option="crudOption">
@ -89,7 +89,7 @@ export default {
}, },
// //
customButton: { customButton: {
operationWidth: 150 // row operationWidth: 160 // row
} }
}, },
// //

Loading…
Cancel
Save