From 804439bd2bc486f2c083324473141f5dca29905f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 26 Jul 2023 16:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86api-definition=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0=E5=8C=96=E6=95=B4=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=9B=BF=E6=8D=A2=E6=8E=89get-dto-column-type?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Fe/public/config.js | 31 +----- Code/Fe/src/App.vue | 1 - Code/Fe/src/api/wms-interface.js | 26 +---- .../components/filterForDetailPage/index.vue | 90 +++++++----------- .../src/components/tablePagination/index.vue | 5 + Code/Fe/src/components/umyTable/index.vue | 25 +++-- Code/Fe/src/mixins/TableMixins.js | 83 +++++++--------- Code/Fe/src/permission-0725.js | 2 +- Code/Fe/src/permission.js | 2 +- Code/Fe/src/store/getters.js | 1 + Code/Fe/src/store/modules/definition.js | 95 +++++++++++++++++-- .../src/utils/detailsPageColumns_api/index.js | 6 +- .../utils/detailsTableColumns_api/index.js | 6 +- Code/Fe/src/utils/index.js | 2 +- Code/Fe/src/utils/tableColumns_api/index.js | 6 +- Code/Fe/src/utils/tabsDesTions_api/index.js | 6 +- .../basicConfig/ExportCustomUserSetting.vue | 14 +-- 17 files changed, 200 insertions(+), 201 deletions(-) diff --git a/Code/Fe/public/config.js b/Code/Fe/public/config.js index 6afd744..54c6435 100644 --- a/Code/Fe/public/config.js +++ b/Code/Fe/public/config.js @@ -1,37 +1,8 @@ // dev_win window.SITE_CONFIG['base'] = 'http://dev.ccwin-in.com:60069' -window.SITE_CONFIG['columnsApiNames'] = '/api/abp/application-localization' -// window.SITE_CONFIG['columnsApiNames'] = '/api/abp/application-configuration' window.SITE_CONFIG['columnsApiNamesZh'] = 'Winin' window.SITE_CONFIG['isAutoLogin'] = true window.SITE_CONFIG['isSinglePage'] = false window.SITE_CONFIG['userNameOrEmailAddress'] = 'admin' window.SITE_CONFIG['client_secret'] = '1q2w3E*' -window.SITE_CONFIG['menuHiddenConfig'] = ['AsnDet','PoDet','ReceiptDet','ReturnDet','SodDet'] - -// window.SITE_CONFIG['user'] = 'http://dev.ccwin-in.com:60069/api' -// // window.SITE_CONFIG['print'] = 'print'21384 -// window.SITE_CONFIG['print'] = 'http://dev.ccwin-in.com:60074' -// window.SITE_CONFIG['largeScreen'] = 'http://dev.ccwin-in.com:60073' -// window.SITE_CONFIG['warehouseCode'] = 'T8' -// window.SITE_CONFIG['company'] = 'DongYang' -// window.SITE_CONFIG['client_secret'] = '1q2w3E*' -// window.SITE_CONFIG['reportsUrl'] = 'http://dev.ccwin-in.com:60074/#/reports/' -// window.SITE_CONFIG['versionUrl'] = 'http://dev.ccwin-in.com:60070' -// window.SITE_CONFIG['companyName'] = '长春一汽富维东阳汽车塑料零部件(安徽)有限公司' -// 接口看板地址 -// window.SITE_CONFIG['interfaceBoardUrl'] = 'http://dev.ccwin-in.com:60090/' -// window.SITE_CONFIG['interfaceBoardUrl'] = 'http://dev.ccwin-in.com:60069/' -// 接口看板表头获取地址 -// window.SITE_CONFIG['interfaceBoardColumnsApi'] = 'api/abp/application-configuration' - -// mock -// window.SITE_CONFIG['apifoxToken'] = 'NXHNi5mp0dnUHGt0wkCrjvfcidsFKV33' -// window.SITE_CONFIG['base'] = 'https://mock.apifox.cn/m1/1773588-0-default' -// window.SITE_CONFIG['user'] = 'http://dev.ccwin-in.com:60099/api/auth' -// window.SITE_CONFIG['print'] = 'print' -// window.SITE_CONFIG['largeScreen'] = 'http://dev.ccwin-in.com:60073' -// window.SITE_CONFIG['warehouseCode'] = 'T8' -// window.SITE_CONFIG['company'] = 'DongYang' -// window.SITE_CONFIG['client_secret'] = '1q2w3E*' -// window.SITE_CONFIG['reportsUrl'] = 'http://10.164.0.227:59091/#/reports/' \ No newline at end of file +window.SITE_CONFIG['menuHiddenConfig'] = ['AsnDet','PoDet','ReceiptDet','ReturnDet','SodDet'] \ No newline at end of file diff --git a/Code/Fe/src/App.vue b/Code/Fe/src/App.vue index ca86e16..b4a1936 100644 --- a/Code/Fe/src/App.vue +++ b/Code/Fe/src/App.vue @@ -9,7 +9,6 @@ export default { name: 'App' } localStorage.setItem('base',window.SITE_CONFIG['base']) -localStorage.setItem('columnsApiNames',window.SITE_CONFIG['columnsApiNames']) localStorage.setItem('columnsApiNamesZh',window.SITE_CONFIG['columnsApiNamesZh']) localStorage.setItem('isAutoLogin',window.SITE_CONFIG['isAutoLogin']) localStorage.setItem('isSinglePage',window.SITE_CONFIG['isSinglePage']) diff --git a/Code/Fe/src/api/wms-interface.js b/Code/Fe/src/api/wms-interface.js index 9f09d03..a2a7b2c 100644 --- a/Code/Fe/src/api/wms-interface.js +++ b/Code/Fe/src/api/wms-interface.js @@ -1,13 +1,12 @@ // 接口监控看板相关api import request from '@/utils/request' let base_api = localStorage.getItem('base') -let colum_url = localStorage.getItem('columnsApiNames') -// 获取表头数据 +// 获取表头zh转义数据 export function getInterfaceBoard() { return request({ method:'get', - url: base_api + colum_url, + url: base_api + '/api/abp/application-localization', params:{ CultureName:localStorage.getItem('browserLanguage'), OnlyDynamics:false @@ -25,8 +24,8 @@ export function getDefinitionMenu(IncludeTypes) { }) } -// 获取枚举数据 -export async function getApiEnumList() { +// 获取枚举数据/dto列类型等所有配置 +export async function getApiDefinition() { return request({ method:'get', url: base_api + '/api/abp/api-definition', @@ -34,23 +33,6 @@ export async function getApiEnumList() { }) } -// 获取dto列数据 -export async function getDtoColumnType(api) { - if(!api)return - return request({ - method:'post', - url: base_api + '/api/'+ api +'/get-dto-column-type', - }) -} - -// 获取dto列数据 -export async function getDtoColumnType(api) { - return request({ - method:'post', - url: base_api + '/api/'+ api +'/base/get-dto-column-type', - }) -} - // // 测试数据-明细-删除 // export function TestSchoolDetailList_delete(id) { // return request({ diff --git a/Code/Fe/src/components/filterForDetailPage/index.vue b/Code/Fe/src/components/filterForDetailPage/index.vue index 41da2b7..a0560f5 100644 --- a/Code/Fe/src/components/filterForDetailPage/index.vue +++ b/Code/Fe/src/components/filterForDetailPage/index.vue @@ -16,12 +16,13 @@ > { - // 表头处理 - if(allData[0]){ + getPageListForDetail(this.PageListParams,this.URLOption_detailList) + .then(res=>{ + // 表头处理 let _parentName = this.URLOption_detailList.substr(0,this.URLOption_detailList.indexOf('/')) - let _Columns = this.initApiColumnsForDto(allData[0],allData[1].items[0],_parentName) + let _Columns = this.initApiColumnsForDto(res.items[0],_parentName) this.listColumns = this.initTableColumns(_Columns) - } - // 页面数据处理 - if(allData[1]){ - this.Loading.tableLoading = false - this.tableData = [] - allData[1].items.forEach(item=>{ - item.deleteTipVisible = false - this.tableData.push(item) - }) + // 页面数据处理 + if(res){ + this.Loading.tableLoading = false + this.tableData = [] + res.items.forEach(item=>{ + item.deleteTipVisible = false + this.tableData.push(item) + }) + this.totalCount = res.totalCount + } this.pagingCallback(callback) - this.totalCount = allData[1].totalCount - } - this.pagingCallback(callback) - }).catch(()=>{ - this.Loading.tableLoading = false - this.$message.error("数据获取失败") - }) + }) + .catch(err=>{ + this.Loading.tableLoading = false + this.$message.error("数据获取失败") + }) }, - // paging(callback){ - // this.Loading.tableLoading = true - // this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount - // getPageListForDetail(this.PageListParams,this.URLOption_detailList) - // // interfaceApi[this.URLOption_detailList](this.PageListParams) - // .then(result => { - // this.Loading.tableLoading = false - // this.tableData = [] - // result.items.forEach(item=>{ - // item.deleteTipVisible = false - // this.tableData.push(item) - // }) - // this.totalCount = result.totalCount - // this.pagingCallback(callback) - // }) - // .catch(err => { - // this.Loading.tableLoading = false - // this.$message.error("数据获取失败") - // }) - // }, // 查看主表信息 showParentHandleForDetail(data){ this.showParentTitle = `${data[this.URLOption_masterName] || ''} 主表信息` @@ -338,15 +318,15 @@ methods: { \ No newline at end of file diff --git a/Code/Fe/src/components/tablePagination/index.vue b/Code/Fe/src/components/tablePagination/index.vue index 80178e1..900316d 100644 --- a/Code/Fe/src/components/tablePagination/index.vue +++ b/Code/Fe/src/components/tablePagination/index.vue @@ -36,6 +36,7 @@ :visible="rowDropVisible" @closeRowDrop="closeRowDrop" :source="rowSource" + :innerMaxHeight="rowMaxHeight" >
@@ -90,6 +91,10 @@ export default { rowDrop }, props: { + rowMaxHeight:{ + type:String, + default:'calc(90vh - 280px)' + }, // 筛选高度 searchOverallCoverHeight:{ type: String, diff --git a/Code/Fe/src/components/umyTable/index.vue b/Code/Fe/src/components/umyTable/index.vue index fa03c13..048ffc0 100644 --- a/Code/Fe/src/components/umyTable/index.vue +++ b/Code/Fe/src/components/umyTable/index.vue @@ -86,7 +86,7 @@