This commit is contained in:
xielue 2023-06-16 12:04:36 +08:00
parent 240351df80
commit 8536ad2efd
2 changed files with 37 additions and 14 deletions

View File

@ -5,9 +5,10 @@
<script>
import BASE_URL from '@/services/mes/api.js';
import XEUtils from 'xe-utils' // xe-utils
export default {
i18n: require("./i18n"),
export default {
i18n: require("./i18n"),
props: {
},
@ -45,7 +46,7 @@ export default {
//
actions: { // Api
getList: `${BASE_URL.BASE_URL}/ProvideLoanApply/v1/provide/loan/apply/list`, //
delete: `${BASE_URL.BASE_URL}/ProvideLoanApply/v1/provide/loan/apply/batchDelete`,
delete: `${BASE_URL.BASE_URL}/ProvideLoanApply/v1/provide/loan/apply/batchDelete`,
},
start_time: 0, //
@ -55,11 +56,22 @@ export default {
enabledExport: true,
enabledImport: false,
enabledImportTemplate: false,
exportColumns: [
exportColumns: [
{ title: '姓名', field: "name" },
{ title: '手机号', field: "phone" },
{ title: '车型', field: "car_type" },
{ title: '城市', field: "work_city" }
{ title: '城市', field: "work_city" },
{
title: '创建时间', field: "create_time", valueGetter: ({ row }) => {
let cellValue = row.create_time;
if (!cellValue) return '';
if (typeof (cellValue) == "number") {
cellValue = new Date(cellValue * 1000);
}
return XEUtils.toDateString(cellValue, 'yyyy-MM-dd')
}
}
],
@ -70,7 +82,7 @@ export default {
},
//
searchRules: [
{ key: "name", mode: "like" }
{ key: "name", mode: "like" }
],
//
searchFormItems: [ //
@ -95,10 +107,10 @@ export default {
{ type: 'checkbox', width: 50 }, //
{ title: '操作', slots: { default: 'op' }, width: 120 },
{ field: 'name', sortable: true, title: '姓名', width: 130 },
{ field: 'phone', sortable: true, title: '手机号', width: 130 },
{ field: 'car_type', sortable: true, title: '车型', width: 100 },
{ field: 'work_city', sortable: true, title: '城市', width: 250 },
{ field: 'name', sortable: true, title: '姓名', width: 130 },
{ field: 'phone', sortable: true, title: '手机号', width: 130 },
{ field: 'car_type', sortable: true, title: '车型', width: 100 },
{ field: 'work_city', sortable: true, title: '城市', width: 250 },
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, //
@ -107,7 +119,7 @@ export default {
}
};
pageData.gridOptions = Object.assign({}, this.$mk.config.defaults.gridOptions, pageData.gridOptions); //
@ -122,6 +134,4 @@ export default {
};
</script>
<style scoped lang="less">
</style>
<style scoped lang="less"></style>

View File

@ -28,6 +28,19 @@ routerMap['basic']= {
permission: [],
}
};
routerMap['ProvideLoanApply']= {
name: '资料管理',
icon: 'idcard',
component: view.blank,
meta: {
},
authority: {
permission: [],
}
};
routerMap['ProvideLoanApplyList']= {
name: '资料管理',
icon: 'idcard',