Browse Source

接口监控看板第二个,报错问题处理

dev_web_online
安虹睿 2 years ago
parent
commit
06e5aa6a14
  1. 2
      fe/PC/public/version.json
  2. 88
      fe/PC/src/views/interfaceBoard/dataExchangeFromOut_file.vue

2
fe/PC/public/version.json

@ -1,3 +1,3 @@
{ {
"version": "1.0.44" "version": "1.0.45"
} }

88
fe/PC/src/views/interfaceBoard/dataExchangeFromOut_file.vue

@ -31,7 +31,7 @@
import { LoadingMixins } from "@/mixins/LoadingMixins"; import { LoadingMixins } from "@/mixins/LoadingMixins";
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"; import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { getInterfaceBoard,dataExchangeFromOut_file } from "@/api/wms-interface" import { dataExchangeFromOut_file } from "@/api/wms-interface"
export default { export default {
name: "dataExchangeFromOut_file", name: "dataExchangeFromOut_file",
@ -49,68 +49,70 @@
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
// this.defaultFilterBtn(),// // this.defaultFilterBtn(),//
], ],
setInterfaceBoardTableColumns:this.setTableColumns() // setInterfaceBoardTableColumns:this.setTableColumns()
}; };
}, },
mounted() { mounted() {
this.paging(); this.paging();
}, },
methods: { methods: {
setTableColumns(){ // setTableColumns(){
let interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames") // let interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
if(!interfaceBoardColumnsNames){ // if(!interfaceBoardColumnsNames){
console.log('获取接口监控看板表头数据并存储') // console.log('')
.catch(err => { // .catch(err => {
}) // })
}else{ // }else{
let _Dashboard = JSON.parse(localStorage.getItem("interfaceBoardColumnsNames")) // // let _Dashboard = JSON.parse(localStorage.getItem("interfaceBoardColumnsNames")) //
return [ // return [
{ label: '11111', prop: "number" }, // { label: '11111', prop: "number" },
{ label: _Dashboard.ArchivedOutgoingToExternalNumber, prop: "number" }, // { label: _Dashboard.ArchivedOutgoingToExternalNumber, prop: "number" },
{ label: _Dashboard.ArchivedOutgoingToExternalRemark, prop: "remark", type:"showDetail" }, // { label: _Dashboard.ArchivedOutgoingToExternalRemark, prop: "remark", type:"showDetail" },
{ label: _Dashboard.ArchivedOutgoingToExternalDataType, prop: "dataType" }, // { label: _Dashboard.ArchivedOutgoingToExternalDataType, prop: "dataType" },
{ label: _Dashboard.ArchivedOutgoingToExternalTableType, prop: "tableType" }, // { label: _Dashboard.ArchivedOutgoingToExternalTableType, prop: "tableType" },
{ label: _Dashboard.ArchivedOutgoingToExternalDataAction, prop: "dataAction" }, // { label: _Dashboard.ArchivedOutgoingToExternalDataAction, prop: "dataAction" },
{ label: _Dashboard.ArchivedOutgoingToExternalEffectiveDate, prop: "effectiveDate",type:'dateTime' }, // { label: _Dashboard.ArchivedOutgoingToExternalEffectiveDate, prop: "effectiveDate",type:'dateTime' },
{ label: _Dashboard.ArchivedOutgoingToExternalStatus, prop: "status" }, // { label: _Dashboard.ArchivedOutgoingToExternalStatus, prop: "status" },
{ label: _Dashboard.ArchivedOutgoingToExternalSourceSystem, prop: "sourceSystem" }, // { label: _Dashboard.ArchivedOutgoingToExternalSourceSystem, prop: "sourceSystem" },
{ label: _Dashboard.ArchivedOutgoingToExternalSourceDataId, prop: "sourceDataId" }, // { label: _Dashboard.ArchivedOutgoingToExternalSourceDataId, prop: "sourceDataId" },
{ label: _Dashboard.ArchivedOutgoingToExternalSourceDataGroupCode, prop: "sourceDataGroupCode" }, // { label: _Dashboard.ArchivedOutgoingToExternalSourceDataGroupCode, prop: "sourceDataGroupCode" },
{ label: _Dashboard.ArchivedOutgoingToExternalSourceDataDetailCode, prop: "sourceDataDetailCode" }, // { label: _Dashboard.ArchivedOutgoingToExternalSourceDataDetailCode, prop: "sourceDataDetailCode" },
{ label: _Dashboard.ArchivedOutgoingToExternalSourceDataContent, prop: "sourceDataContent", type:"showJsonTable" }, // { label: _Dashboard.ArchivedOutgoingToExternalSourceDataContent, prop: "sourceDataContent", type:"showJsonTable" },
{ label: _Dashboard.ArchivedOutgoingToExternalWriteTime, prop: "writeTime",type:'dateTime' }, // { label: _Dashboard.ArchivedOutgoingToExternalWriteTime, prop: "writeTime",type:'dateTime' },
{ label: _Dashboard.ArchivedOutgoingToExternalWriter, prop: "writer" }, // { label: _Dashboard.ArchivedOutgoingToExternalWriter, prop: "writer" },
{ label: _Dashboard.ArchivedOutgoingToExternalDestinationSystem, prop: "destinationSystem" }, // { label: _Dashboard.ArchivedOutgoingToExternalDestinationSystem, prop: "destinationSystem" },
{ label: _Dashboard.ArchivedOutgoingToExternalDestinationDataId, prop: "destinationDataId" }, // { label: _Dashboard.ArchivedOutgoingToExternalDestinationDataId, prop: "destinationDataId" },
{ label: _Dashboard.ArchivedOutgoingToExternalDestinationDataContent, prop: "destinationDataContent", type:"showJsonTable" }, // { label: _Dashboard.ArchivedOutgoingToExternalDestinationDataContent, prop: "destinationDataContent", type:"showJsonTable" },
{ label: _Dashboard.ArchivedOutgoingToExternalReadTime, prop: "readTime",type:'dateTime' }, // { label: _Dashboard.ArchivedOutgoingToExternalReadTime, prop: "readTime",type:'dateTime' },
{ label: _Dashboard.ArchivedOutgoingToExternalReader, prop: "reader" }, // { label: _Dashboard.ArchivedOutgoingToExternalReader, prop: "reader" },
{ label: _Dashboard.ArchivedOutgoingToExternalErrorCode, prop: "errorCode" }, // { label: _Dashboard.ArchivedOutgoingToExternalErrorCode, prop: "errorCode" },
{ label: _Dashboard.ArchivedOutgoingToExternalErrorMessage, prop: "errorMessage", type:"showDetail" }, // { label: _Dashboard.ArchivedOutgoingToExternalErrorMessage, prop: "errorMessage", type:"showDetail" },
{ label: _Dashboard.ArchivedOutgoingToExternalRetryTimes, prop: "retryTimes" }, // { label: _Dashboard.ArchivedOutgoingToExternalRetryTimes, prop: "retryTimes" },
// ************** ************************ // // ************** ************************
// { label: _Public.creationTime, prop: "creationTime",type:'dateTime' }, // // { label: _Public.creationTime, prop: "creationTime",type:'dateTime' },
// { label: _Public.creatorId, prop: "creatorId" }, // // { label: _Public.creatorId, prop: "creatorId" },
// { label: _Public.lastModificationTime", prop: "lastModificationTime",type:'dateTime' }, // // { label: _Public.lastModificationTime", prop: "lastModificationTime",type:'dateTime' },
// { label: _Public.lastModifierId, prop: "lastModifierId" }, // // { label: _Public.lastModifierId, prop: "lastModifierId" },
// { label: _Public.ID, prop: "ID" }, // // { label: _Public.ID, prop: "ID" },
] // ]
} // }
}, // },
// //
paging(callback) { paging(callback) {
this.Loading.tableLoading = true; this.Loading.tableLoading = true;
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount, this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount,
dataExchangeFromOut_file(this.PageListParams) dataExchangeFromOut_file(this.PageListParams)
.then(result => { .then(result => {
console.log(108)
let res = result.data let res = result.data
this.tableData = res.items this.tableData = res.items
this.totalCount = res.totalCount this.totalCount = res.totalCount
this.pagingCallback(callback) this.pagingCallback(callback)
}) })
.catch(err => { .catch(err => {
console.log(115)
this.Loading.tableLoading = false this.Loading.tableLoading = false
}) })
}, },

Loading…
Cancel
Save