update
This commit is contained in:
parent
675f1f7054
commit
c619448874
@ -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
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
:dialog-configs="dialogConfigs"
|
||||
:listQueryExtra="[{ code }]"
|
||||
attach-list-query-data="code"
|
||||
:trigger-update="triggerUpdateKey"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user