From 1b78a08d54a1c765b3d16612e9d44b3e80dcca5c Mon Sep 17 00:00:00 2001 From: mors <3067699729@qq.com> Date: Wed, 26 Apr 2023 17:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue | 6 +++++- ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue index a37b103..087ab96 100644 --- a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue +++ b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue @@ -244,6 +244,10 @@ superFieldList: [], //参数 loadRouteType: false, + isorterx: { + column: 'createTime', + order: 'asc', + }, } }, @@ -420,7 +424,7 @@ sqp['superQueryParams'] = encodeURI(this.superQueryParams) sqp['superQueryMatchType'] = this.superQueryMatchType } - var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); + var param = Object.assign(sqp, this.queryParam, this.isorterx, this.filters); param.field = this.getQueryField(); param.pageNo = this.ipagination.current; param.pageSize = this.ipagination.pageSize; diff --git a/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue b/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue index edf8e53..516f6c5 100644 --- a/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue +++ b/ant-design-vue-jeecg/src/views/projectx/ProjectxList.vue @@ -116,14 +116,17 @@ import '@/assets/less/TableExpand.less' import {mixinDevice} from '@/utils/mixin' import {JeecgListMixin} from '@/mixins/JeecgListMixin' import ProjectxModal from './modules/ProjectxModal' +import JEllipsis from '@/components/jeecg/JEllipsis' export default { name: 'ProjectxList', //添加用户 mixins: [JeecgListMixin, mixinDevice], components: { - ProjectxModal + ProjectxModal, + JEllipsis, }, data() { + let ellipsis = (v, l = 20) => () return { description: '项目管理 管理项目基本信息管理页面', // 表头 @@ -141,12 +144,14 @@ export default { { title: '项目中文名称', align: "center", - dataIndex: 'projectName' + dataIndex: 'projectName', + customRender: (t)=>ellipsis(t) }, { title: '项目英文名称', align: "center", dataIndex: 'projectEnName', + customRender: (t)=>ellipsis(t) }, { title: '项目编码',