This commit is contained in:
parent
240351df80
commit
8536ad2efd
|
|
@ -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>
|
||||
|
|
@ -28,6 +28,19 @@ routerMap['basic']= {
|
|||
permission: [],
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
routerMap['ProvideLoanApply']= {
|
||||
name: '资料管理',
|
||||
icon: 'idcard',
|
||||
component: view.blank,
|
||||
meta: {
|
||||
},
|
||||
authority: {
|
||||
permission: [],
|
||||
}
|
||||
};
|
||||
|
||||
routerMap['ProvideLoanApplyList']= {
|
||||
name: '资料管理',
|
||||
icon: 'idcard',
|
||||
|
|
|
|||
Loading…
Reference in New Issue