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 myComponents from 'code-brick-zj'
|
||||||
|
|
||||||
|
|
||||||
import mocks from './mocks'
|
// import mocks from './mocks'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
|
@ -104,6 +104,8 @@ export default {
|
|||||||
triggerUpdate(val, oldVal) {
|
triggerUpdate(val, oldVal) {
|
||||||
if (val && val !== oldVal) {
|
if (val && val !== oldVal) {
|
||||||
// get list
|
// get list
|
||||||
|
this.page = 1
|
||||||
|
this.size = 20
|
||||||
this.getList();
|
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) {
|
if ("timerange" in params && !!params.timerange) {
|
||||||
const [startTime, endTime] = params["timerange"];
|
const [startTime, endTime] = params["timerange"];
|
||||||
delete params.timerange;
|
delete params.timerange;
|
||||||
params.startTime = moment(startTime).format("YYYY-MM-DD HH:mm:ss");
|
params.startTime = moment(startTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||||
params.endTime = moment(endTime).format("YYYY-MM-DD HH:mm:ss");
|
params.endTime = moment(endTime).format("YYYY-MM-DDTHH:mm:ss");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
:dialog-configs="dialogConfigs"
|
:dialog-configs="dialogConfigs"
|
||||||
:listQueryExtra="[{ code }]"
|
:listQueryExtra="[{ code }]"
|
||||||
attach-list-query-data="code"
|
attach-list-query-data="code"
|
||||||
|
:trigger-update="triggerUpdateKey"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
|
import TableOperaionComponent from "@/components/noTemplateComponents/operationComponent";
|
||||||
// import switchBtn from "@/components/noTemplateComponents/switchBtn";
|
|
||||||
import QuillRichInput from "@/components/noTemplateComponents/richInput";
|
|
||||||
import request from "@/utils/request";
|
import request from "@/utils/request";
|
||||||
import { timeFilter } from '@/utils/filters'
|
import { timeFilter } from '@/utils/filters'
|
||||||
|
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
<template>
|
<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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -7,7 +14,7 @@ import initConfig from "./config";
|
|||||||
import ListViewWithHead from "@/views/atomViews/ListViewWithHead.vue";
|
import ListViewWithHead from "@/views/atomViews/ListViewWithHead.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CarView",
|
name: "currentCarLocationView",
|
||||||
components: { ListViewWithHead },
|
components: { ListViewWithHead },
|
||||||
provide() {
|
provide() {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user