This commit is contained in:
lb 2023-03-22 16:21:33 +08:00
parent 675f1f7054
commit c619448874
5 changed files with 23 additions and 7 deletions

View File

@ -25,7 +25,7 @@ import cloneDeep from 'lodash/cloneDeep'
import myComponents from 'code-brick-zj'
import mocks from './mocks'
// import mocks from './mocks'
Vue.config.productionTip = false

View File

@ -104,6 +104,8 @@ export default {
triggerUpdate(val, oldVal) {
if (val && val !== oldVal) {
// get list
this.page = 1
this.size = 20
this.getList();
}
},
@ -398,6 +400,14 @@ export default {
}
});
}
case "to-car-history": {
return this.$router.push({
name: 'pms-carHistory',
query: {
code: data.code
}
})
}
}
},
@ -417,8 +427,8 @@ export default {
if ("timerange" in params && !!params.timerange) {
const [startTime, endTime] = params["timerange"];
delete params.timerange;
params.startTime = moment(startTime).format("YYYY-MM-DD HH:mm:ss");
params.endTime = moment(endTime).format("YYYY-MM-DD HH:mm:ss");
params.startTime = moment(startTime).format("YYYY-MM-DDTHH:mm:ss");
params.endTime = moment(endTime).format("YYYY-MM-DDTHH:mm:ss");
}
}

View File

@ -5,6 +5,7 @@
:dialog-configs="dialogConfigs"
:listQueryExtra="[{ code }]"
attach-list-query-data="code"
:trigger-update="triggerUpdateKey"
/>
</template>

View File

@ -1,6 +1,4 @@
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
// import switchBtn from "@/components/noTemplateComponents/switchBtn";
import QuillRichInput from "@/components/noTemplateComponents/richInput";
import request from "@/utils/request";
import { timeFilter } from '@/utils/filters'

View File

@ -1,5 +1,12 @@
<template>
<ListViewWithHead :table-config="tableConfig" :head-config="headFormConfigs" :dialog-configs="dialogConfigs" :list-query-extra="[/** { pos: [] } **/]" />
<ListViewWithHead
:table-config="tableConfig"
:head-config="headFormConfigs"
:dialog-configs="dialogConfigs"
:list-query-extra="[
/** { pos: [] } **/
]"
/>
</template>
<script>
@ -7,7 +14,7 @@ import initConfig from "./config";
import ListViewWithHead from "@/views/atomViews/ListViewWithHead.vue";
export default {
name: "CarView",
name: "currentCarLocationView",
components: { ListViewWithHead },
provide() {
return {