diff --git a/src/option/mt/Mengtiandatapushback.js b/src/option/mt/Mengtiandatapushback.js index 55148666..4f13cbfd 100644 --- a/src/option/mt/Mengtiandatapushback.js +++ b/src/option/mt/Mengtiandatapushback.js @@ -124,7 +124,7 @@ export const columnList = [ { prop: 'createTime', label: '创建时间', - type: 2, + type: 1, values: '', width: '150', checkarr: [], @@ -136,7 +136,7 @@ export const columnList = [ { prop: 'updateTime', label: '更新时间', - type: 2, + type: 1, values: '', width: '150', checkarr: [], diff --git a/src/views/factory/mt/Mengtiandatapushback.vue b/src/views/factory/mt/Mengtiandatapushback.vue index dba0f4e2..28a00140 100644 --- a/src/views/factory/mt/Mengtiandatapushback.vue +++ b/src/views/factory/mt/Mengtiandatapushback.vue @@ -5,7 +5,34 @@ - + +
+ + + + + + +
+ 搜 索 @@ -102,6 +129,7 @@ import { downloadXls } from '@/utils/util'; import { useStore } from 'vuex'; import dayjs from 'dayjs'; import error from '@/error'; +const TopQuery = ref({}); const $router = useRouter(); //跳转 const $useStore = useStore(); //权限 const $route = useRoute(); //获取地址栏参数 @@ -222,6 +250,8 @@ const timesc = (index, row) => { if (!index) { delete details.query[row.prop]; } + processRowProperty(index, row, details); + onLoad(); }; /** 表格表头输入框搜索 */ @@ -240,7 +270,24 @@ const selectionChange = list => { }; // 网页顶部搜索按钮 const searchChange = () => { - details.search = false; //关闭搜索 + // 创建时间 + if (TopQuery.value.time1?.length) { + details.query.startCreateTime = dayjs(TopQuery.value.time1[1]).format('YYYY-MM-DD HH:mm:ss'); //创建时间开始 + details.query.endCreateTime = dayjs(TopQuery.value.time1[0]).format('YYYY-MM-DD HH:mm:ss'); //创建时间结束 + } else { + delete details.query.startCreateTime; + delete details.query.endCreateTime; + } + // 更新时间 + if (TopQuery.value.time2?.length) { + details.query.startUpdateTime = dayjs(TopQuery.value.time2[1]).format('YYYY-MM-DD HH:mm:ss'); //创建时间开始 + details.query.endUpdateTime = dayjs(TopQuery.value.time2[0]).format('YYYY-MM-DD HH:mm:ss'); //创建时间结束 + } else { + delete details.query.startUpdateTime; + delete details.query.endUpdateTime; + } + console.log(TopQuery.value, '日期'); + onLoad(); }; // 每页多少条 const sizeChange = val => { @@ -465,7 +512,7 @@ const searchReset = () => { .el-fr-d { width: 100%; display: flex; - justify-content: flex-end; + justify-content: space-between; .el-btn { margin-right: 0; }