!47 修复和优化前端 utils 工具函数
Merge pull request !47 from FungLeo/master
| | |
| | | import { parseTime } from './ruoyi'
|
| | |
|
| | | /**
|
| | | * 表格时间格式化
|
| | | */
|
| | |
| | | export function isNumberStr(str) {
|
| | | return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str)
|
| | | }
|
| | | |
| | | |
| | |
| | | // 回显数据字典
|
| | | export function selectDictLabel(datas, value) {
|
| | | var actions = [];
|
| | | Object.keys(datas).map((key) => {
|
| | | Object.keys(datas).some((key) => {
|
| | | if (datas[key].dictValue == ('' + value)) {
|
| | | actions.push(datas[key].dictLabel);
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | })
|
| | | return actions.join('');
|
| | |
| | | });
|
| | | return treeData != '' ? treeData : data;
|
| | | }
|
| | | |
| | | |