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 @@