新增多时间范围查询

This commit is contained in:
不做码农
2021-12-06 22:50:50 +08:00
parent baa0f9b4e5
commit 74635e79b9
5 changed files with 36 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ import './assets/icons' // icon
import './permission' // permission control
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";
import { parseTime, resetForm, addDateRange, addDateRange2, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi";
//分页组件
import Pagination from "@/components/Pagination";
//自定义表格工具扩展
@@ -36,6 +36,7 @@ Vue.prototype.getConfigKey = getConfigKey
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.addDateRange2 = addDateRange2
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download

View File

@@ -65,6 +65,17 @@ export function addDateRange(params, dateRange) {
return search;
}
export function addDateRange2(dateRange, index) {
console.log(dateRange);
var time = "";
if (null != dateRange && '' != dateRange) {
if (dateRange.length <= 2) {
time = dateRange[index];
}
}
return time;
}
// 回显数据字典
export function selectDictLabel(datas, value) {
var actions = [];