RMSSOH增加查看详情,点击一条数据进入查看详情,解析文件内容并渲染
This commit is contained in:
parent
b6ba87c6ae
commit
ce5af3975e
|
@ -16,7 +16,6 @@
|
||||||
:list="dataSource"
|
:list="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:canSelect="false"
|
|
||||||
@change="handleTableChange"
|
@change="handleTableChange"
|
||||||
@detail="handleDetail"
|
@detail="handleDetail"
|
||||||
>
|
>
|
||||||
|
@ -137,10 +136,12 @@ export default {
|
||||||
this.isFileDetail = flag
|
this.isFileDetail = flag
|
||||||
},
|
},
|
||||||
handleDetail(record) {
|
handleDetail(record) {
|
||||||
|
console.log(record);
|
||||||
this.currSampleId = record.sohId
|
this.currSampleId = record.sohId
|
||||||
this.isFileDetail = true
|
this.isFileDetail = true
|
||||||
},
|
},
|
||||||
searchQueryData() {
|
searchQueryData() {
|
||||||
|
this.loading = true
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
|
@ -155,6 +156,7 @@ export default {
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
}
|
}
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
this.loading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ipagination.current = res.result.current
|
this.ipagination.current = res.result.current
|
||||||
this.ipagination.pageSize = res.result.size
|
this.ipagination.pageSize = res.result.size
|
||||||
|
|
|
@ -141,6 +141,7 @@ export default {
|
||||||
this.isFileDetail = true
|
this.isFileDetail = true
|
||||||
},
|
},
|
||||||
searchQueryData() {
|
searchQueryData() {
|
||||||
|
this.loading = true
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
|
@ -155,6 +156,7 @@ export default {
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
}
|
}
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
this.loading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ipagination.current = res.result.current
|
this.ipagination.current = res.result.current
|
||||||
this.ipagination.pageSize = res.result.size
|
this.ipagination.pageSize = res.result.size
|
||||||
|
|
|
@ -141,8 +141,9 @@ export default {
|
||||||
this.isFileDetail = true
|
this.isFileDetail = true
|
||||||
},
|
},
|
||||||
searchQueryData() {
|
searchQueryData() {
|
||||||
|
this.loading = true
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
// if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
// this.queryParam = {
|
// this.queryParam = {
|
||||||
// startTime: "2023-01-01",
|
// startTime: "2023-01-01",
|
||||||
|
@ -155,6 +156,7 @@ export default {
|
||||||
pageSize: 10
|
pageSize: 10
|
||||||
}
|
}
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
|
this.loading = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.ipagination.current = res.result.current
|
this.ipagination.current = res.result.current
|
||||||
this.ipagination.pageSize = res.result.size
|
this.ipagination.pageSize = res.result.size
|
||||||
|
@ -164,9 +166,9 @@ export default {
|
||||||
this.$message.warning("This operation fails. Contact your system administrator")
|
this.$message.warning("This operation fails. Contact your system administrator")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// } else {
|
} else {
|
||||||
// this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.")
|
this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.")
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user