@@ -379,6 +214,7 @@ import { getStudyUploadMonitor_Export } from '@/api/export'
import Pagination from '@/components/Pagination'
import BaseContainer from '@/components/BaseContainer'
import BaseModel from '@/components/BaseModel'
+import { changeURLStatic } from '@/utils/history.js'
import axios from 'axios'
const searchDataDefault = () => {
return {
@@ -421,10 +257,26 @@ export default {
if (this.$route.query.studyCode) {
this.searchData.StudyCode = this.$route.query.studyCode
}
+ if (this.$route.query.siteId) {
+ this.searchData.TrialSiteId = this.$route.query.siteId
+ }
+ if (this.$route.query.subjectCode) {
+ this.searchData.SubjectInfo = this.$route.query.subjectCode
+ }
+ if (this.$route.query.visitNum || this.$route.query.visitNum === 0) {
+ this.searchData.VisitPlanArray = [Number(this.$route.query.visitNum)]
+ }
this.getList()
this.getVisitPlanOptions()
+ this.clearnUrl()
},
methods: {
+ clearnUrl() {
+ changeURLStatic('siteId', '')
+ changeURLStatic('subjectCode', '')
+ changeURLStatic('visitNum', '')
+
+ },
async handleLook(row) {
this.lookVisible = true
var htmlUrl = this.OSSclientConfig.basePath + row.RecordPath
@@ -482,8 +334,8 @@ export default {
},
handleExport() {
getStudyUploadMonitor_Export(this.searchData)
- .then((res) => {})
- .catch(() => {})
+ .then((res) => { })
+ .catch(() => { })
},
handleDatetimeChange(val) {
if (val) {