diff --git a/public/index.html b/public/index.html index eebd0f97..0c22a84a 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,7 @@ + diff --git a/src/api/export.js b/src/api/export.js index 93067284..17606cfe 100644 --- a/src/api/export.js +++ b/src/api/export.js @@ -239,3 +239,12 @@ export function GetInternationalizationList_Export(data) { data }) } +// 导出一致性分析 +export function GetAnalysisTaskList_Export(data) { + return requestDownload({ + url: `/ExcelExport/GetAnalysisTaskList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index db896199..5aea53cc 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -83,7 +83,7 @@ - @@ -98,6 +100,21 @@ + --> + + + @@ -274,6 +291,8 @@ export default { }, loading: false, passwordType: 'password', + pwdCover: null, + isShowPassword: false, loginType: null, location: null, isShow: false, @@ -435,6 +454,60 @@ export default { handleResetPwd() { this.$router.push({ name: 'Resetpassword' }) }, + // 输入框输入事件 + setPassword(val) { + if (this.isShowPassword) { + this.loginForm.password = val + } else { + let reg = /[0-9a-zA-Z]/g // 只允许输入字母和数字 + let nDot = /[^●]/g // 非圆点字符 + let index = -1 // 新输入的字符位置 + let lastChar = void 0 // 新输入的字符 + let realArr = this.loginForm.password.split('') // 真实密码数组 + let coverArr = val.split('') // 文本框显示密码数组 + let coverLen = val.length // 文本框字符串长度 + let realLen = this.loginForm.password.length // 真实密码长度 + // 找到新输入的字符及位置 + coverArr.forEach((el, idx) => { + if (nDot.test(el)) { + index = idx + lastChar = el + } + }) + // 判断输入的字符是否符合规范,不符合的话去掉该字符 + if (lastChar && !reg.test(lastChar)) { + coverArr.splice(index, 1) + this.pwdCover = coverArr.join('') + return + } + if (realLen < coverLen) { + // 新增字符 + realArr.splice(index, 0, lastChar) + } else if (coverLen <= realLen && index !== -1) { + // 替换字符(选取一个或多个字符直接替换) + realArr.splice(index, realLen - (coverLen - 1), lastChar) + } else { + // 删除字符,因为 val 全是 ● ,没有办法匹配,不知道是从末尾还是中间删除的字符,删除了几个,不好对 password 处理,所以可以通过光标的位置和 val 的长度来判断 + let pos = document.getElementById('pwd').selectionEnd // 获取光标位置 + realArr.splice(pos, realLen - coverLen) + } + // 将 pwdCover 替换成 ● + this.pwdCover = val.replace(/\S/g, '●') + this.loginForm.password = realArr.join('') + } + }, + // 点击右侧小眼睛控制显示隐藏 + hidePassword() { + if (!this.isShowPassword) { + // console.log("显示"); + this.isShowPassword = true + this.pwdCover = this.loginForm.password + } else { + // console.log("隐藏"); + this.isShowPassword = false + this.pwdCover = this.pwdCover.replace(/\S/g, '●') + } + }, }, } diff --git a/src/views/system/event/index.vue b/src/views/system/event/index.vue index 663d8d18..866fd3a8 100644 --- a/src/views/system/event/index.vue +++ b/src/views/system/event/index.vue @@ -130,8 +130,8 @@ const searchDataDefault = () => { return { EventState: null, EventTypeName: null, - Asc: true, - SortField: '', + Asc: false, + SortField: 'CreateTime', PageIndex: 1, PageSize: 20, } diff --git a/src/views/trials/trials-panel/reading/consistency-analysis/components/exportList.vue b/src/views/trials/trials-panel/reading/consistency-analysis/components/exportList.vue index 217dce6b..f7de1d1b 100644 --- a/src/views/trials/trials-panel/reading/consistency-analysis/components/exportList.vue +++ b/src/views/trials/trials-panel/reading/consistency-analysis/components/exportList.vue @@ -1,18 +1,37 @@ @@ -384,16 +384,16 @@ > @@ -419,24 +419,24 @@ > @@ -458,10 +458,10 @@ > @@ -475,10 +475,10 @@ > @@ -519,19 +519,19 @@ > @@ -648,11 +648,11 @@ - {{ $t("trials:consistencyAnalysis:table:impact") }} + {{ $t('trials:consistencyAnalysis:table:impact') }} : {{ $t("trials:consistencyAnalysis:title:impactInfluence") }}: {{ $t('trials:consistencyAnalysis:title:impactInfluence') }} @@ -684,7 +684,7 @@ :loading="btnLoading" @click="addReaderRulesForm()" > - {{ $t("trials:selftConsistencyAnalysis:button:config") }} + {{ $t('trials:selftConsistencyAnalysis:button:config') }}
{{ - $fd("YesOrNo", scope.row.IsHaveReadingPeriod) + $fd('YesOrNo', scope.row.IsHaveReadingPeriod) }} {{ - $fd("YesOrNo", scope.row.IsHaveReadingPeriod) + $fd('YesOrNo', scope.row.IsHaveReadingPeriod) }} @@ -769,11 +769,11 @@ v-if="scope.row.IsGenerateGlobalTask" size="success" >{{ - $fd("YesOrNo", scope.row.IsGenerateGlobalTask) + $fd('YesOrNo', scope.row.IsGenerateGlobalTask) }} {{ - $fd("YesOrNo", scope.row.IsGenerateGlobalTask) + $fd('YesOrNo', scope.row.IsGenerateGlobalTask) }} @@ -864,7 +864,7 @@ type="primary" @click="ReaderRulesVisible = false" > - {{ $t("common:button:cancel") }} + {{ $t('common:button:cancel') }}
@@ -894,13 +894,13 @@ @click="addReaderRulesForm('g')" > - {{ $t("trials:grouptConsistencyAnalysis:button:config") }} + {{ $t('trials:grouptConsistencyAnalysis:button:config') }} {{ - $t("trials:consistencyAnalysis:applyReread:imageReload") + $t('trials:consistencyAnalysis:applyReread:imageReload') }} {{ - $t("trials:consistencyAnalysis:applyReread:other") + $t('trials:consistencyAnalysis:applyReread:other') }} @@ -1056,11 +1056,11 @@ size="small" type="primary" @click=" - ApplyforReasonVisible = false; - ApplyforReasonForm = { Type: null, RequestReReadingReason: null }; + ApplyforReasonVisible = false + ApplyforReasonForm = { Type: null, RequestReReadingReason: null } " > - {{ $t("common:button:cancel") }} + {{ $t('common:button:cancel') }} - {{ $t("common:button:save") }} + {{ $t('common:button:save') }} @@ -1116,27 +1116,28 @@ import { getDoctorUserSelectList, getAnalysisTaskList, applyReReading, -} from "@/api/trials/reading"; -import { setTaskValid } from "@/api/trials"; -import ClinicalData from "@/views/trials/trials-panel/subject/reading-period/components/ClinicalData"; +} from '@/api/trials/reading' +import { setTaskValid } from '@/api/trials' +import ClinicalData from '@/views/trials/trials-panel/subject/reading-period/components/ClinicalData' import { getSelfAnalysisTaskList_Export, getGroupAnalysisTaskList_Export, -} from "@/api/export"; -import ReaderRulesForm from "./components/ReaderRulesForm"; -import DoctorConsistentRuleSubjectTable from "./components/DoctorConsistentRuleSubjectTable"; -import GroupConsistentRuleSubjectTable from "./components/GroupConsistentRuleSubjectTable"; -import VirtualCenter from "./components/VirtualCenter"; -import BaseContainer from "@/components/BaseContainer"; -import Pagination from "@/components/Pagination"; -import { getToken } from "@/utils/auth"; -import exportList from "./components/exportList.vue"; + GetAnalysisTaskList_Export, +} from '@/api/export' +import ReaderRulesForm from './components/ReaderRulesForm' +import DoctorConsistentRuleSubjectTable from './components/DoctorConsistentRuleSubjectTable' +import GroupConsistentRuleSubjectTable from './components/GroupConsistentRuleSubjectTable' +import VirtualCenter from './components/VirtualCenter' +import BaseContainer from '@/components/BaseContainer' +import Pagination from '@/components/Pagination' +import { getToken } from '@/utils/auth' +import exportList from './components/exportList.vue' const searchDataDefault = () => { return { PageIndex: 1, PageSize: 20, Asc: true, - SortField: "", + SortField: '', TrialId: null, TrialSiteId: null, SubjectId: null, @@ -1153,10 +1154,10 @@ const searchDataDefault = () => { TrialReadingCriterionId: null, BeginSignTime: null, EndSignTime: null, - }; -}; + } +} export default { - name: "TrialsNotice", + name: 'TrialsNotice', components: { exportList, BaseContainer, @@ -1205,15 +1206,15 @@ export default { Type: [ { required: true, - message: this.$t("common:ruleMessage:specify"), - trigger: "blur", + message: this.$t('common:ruleMessage:specify'), + trigger: 'blur', }, ], RequestReReadingReason: [ { required: true, - message: this.$t("common:ruleMessage:specify"), - trigger: "blur", + message: this.$t('common:ruleMessage:specify'), + trigger: 'blur', }, ], }, @@ -1224,17 +1225,17 @@ export default { exportVisible: false, clinicalDataVisible: false, - }; + } }, mounted() { - this.getList(); - this.getSite(); - this.getDoctorUserSelectList(); - this.getTrialCriterionList(); + this.getList() + this.getSite() + this.getDoctorUserSelectList() + this.getTrialCriterionList() }, beforeDestroy() { if (this.openWindow) { - this.openWindow.close(); + this.openWindow.close() } }, methods: { @@ -1242,35 +1243,35 @@ export default { async handleSetState(row) { try { let confirm = await this.$confirm( - this.$t("trials:reading:consistencyAnalysis:message:setState"), + this.$t('trials:reading:consistencyAnalysis:message:setState'), { - type: "warning", + type: 'warning', distinguishCancelAndClose: true, } - ); - if (!confirm) return; + ) + if (!confirm) return let data = { visitTaskId: row.Id, - }; - let res = await setTaskValid(data); + } + let res = await setTaskValid(data) if (res.IsSuccess) { this.$message.success( - this.$t("trials:reading:consistencyAnalysis:setStateSuccess") - ); - this.getList(); + this.$t('trials:reading:consistencyAnalysis:setStateSuccess') + ) + this.getList() } } catch (err) { - console.log(err); + console.log(err) } }, // 临床数据相关 handleView(row) { - this.currentData = row; - this.currentData.TrialId = this.$route.query.trialId; - this.clinicalDataVisible = true; + this.currentData = row + this.currentData.TrialId = this.$route.query.trialId + this.clinicalDataVisible = true }, openSite() { - this.isOpenSite = true; + this.isOpenSite = true }, handleExport(type, TrialReadingCriterionId) { // if (!this.searchData.TrialReadingCriterionId) { @@ -1279,89 +1280,91 @@ export default { // } if (!TrialReadingCriterionId) { this.$alert( - this.$t("trials:consistencyAnalysis:message:selectCriterion") - ); //'请先选择阅片标准' - return; + this.$t('trials:consistencyAnalysis:message:selectCriterion') + ) //'请先选择阅片标准' + return } - let obj = JSON.parse(JSON.stringify(this.searchData)); - obj.TrialReadingCriterionId = TrialReadingCriterionId; + let obj = JSON.parse(JSON.stringify(this.searchData)) + obj.TrialReadingCriterionId = TrialReadingCriterionId + obj.ReadingExportType = type + return GetAnalysisTaskList_Export(obj) if (type === 1) { getSelfAnalysisTaskList_Export(obj) .then((res) => {}) .catch(() => { - this.loading = false; - }); + this.loading = false + }) } else { getGroupAnalysisTaskList_Export(obj) .then((res) => {}) .catch(() => { - this.loading = false; - }); + this.loading = false + }) } }, getTrialCriterionList() { - this.loading = true; + this.loading = true getTrialCriterionList(this.trialId) .then((res) => { - this.trialCriterionList = res.Result; + this.trialCriterionList = res.Result this.TrialReadingCriterionId = - this.trialCriterionList[0].TrialReadingCriterionId; - this.loading = false; + this.trialCriterionList[0].TrialReadingCriterionId + this.loading = false }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) }, setAnalysisTaskInvalid(row) { // '确定要将该一致性任务设置成失效吗?' this.$confirm( - this.$t("trials:consistencyAnalysis:applyReread:msg1") + this.$t('trials:consistencyAnalysis:applyReread:msg1') ).then(() => { - this.loading = true; + this.loading = true setAnalysisTaskInvalid([row.Id]) .then((res) => { // 设置成功 this.$message.success( - this.$t("trials:consistencyAnalysis:applyReread:msg2") - ); - this.getList(); - this.loading = false; + this.$t('trials:consistencyAnalysis:applyReread:msg2') + ) + this.getList() + this.loading = false }) .catch(() => { - this.loading = false; - }); - }); + this.loading = false + }) + }) }, changeTimeList() { if (this.timeList) { - this.searchData.BeginAllocateDate = this.timeList[0]; - this.searchData.EndAllocateDate = this.timeList[1]; + this.searchData.BeginAllocateDate = this.timeList[0] + this.searchData.EndAllocateDate = this.timeList[1] } else { - this.searchData.BeginAllocateDate = null; - this.searchData.EndAllocateDate = null; + this.searchData.BeginAllocateDate = null + this.searchData.EndAllocateDate = null } }, changeTimeList2() { if (this.timeList2) { - this.searchData.BeginSignTime = this.timeList2[0]; - this.searchData.EndSignTime = this.timeList2[1]; + this.searchData.BeginSignTime = this.timeList2[0] + this.searchData.EndSignTime = this.timeList2[1] } else { - this.searchData.BeginSignTime = null; - this.searchData.EndSignTime = null; + this.searchData.BeginSignTime = null + this.searchData.EndSignTime = null } }, // 重阅历史 reReadingHistory(row) { this.$router.push({ path: `/trials/trials-panel/reading/reReadingTracking?trialId=${this.$route.query.trialId}&trialCode=${this.$route.query.trialCode}&researchProgramNo=${this.$route.query.researchProgramNo}&TrialSiteId=${row.TrialSiteId}&SubjectCode=${row.SubjectCode}&TaskName=${row.TaskName}&DoctorUserId=${row.DoctorUserId}`, - }); + }) }, // 申请重阅 applyReReading() { this.$refs.reasonForm.validate((valid) => { - if (!valid) return; - this.loading = true; - this.btnLoading = true; + if (!valid) return + this.loading = true + this.btnLoading = true var params = { TaskIdList: [this.rowData.Id], TrialId: this.$route.query.trialId, @@ -1369,28 +1372,28 @@ export default { RequestReReadingReason: this.ApplyforReasonForm.Type === 2 ? this.ApplyforReasonForm.RequestReReadingReason - : this.$t("trials:consistencyAnalysis:applyReread:imageReload"), //'图像重传' - }; + : this.$t('trials:consistencyAnalysis:applyReread:imageReload'), //'图像重传' + } applyReReading(params) .then((res) => { - this.loading = false; - this.btnLoading = false; + this.loading = false + this.btnLoading = false // 申请重阅成功 this.$message.success( - this.$t("trials:consistencyAnalysis:applyReread:msg3") - ); - this.getList(); - this.ApplyforReasonVisible = false; + this.$t('trials:consistencyAnalysis:applyReread:msg3') + ) + this.getList() + this.ApplyforReasonVisible = false }) .catch(() => { - this.loading = false; - this.btnLoading = false; - }); - }); + this.loading = false + this.btnLoading = false + }) + }) }, lookReadingResults(row) { if (this.openWindow) { - this.openWindow.close(); + this.openWindow.close() } // var token = getToken() // const routeData = this.$router.resolve({ @@ -1398,38 +1401,38 @@ export default { // }) // window.open(routeData.href, '_blank') window.localStorage.setItem( - "TrialReadingCriterionId", + 'TrialReadingCriterionId', this.TrialReadingCriterionId - ); - var token = getToken(); - var path = ""; + ) + var token = getToken() + var path = '' if (row.ReadingTool === 0) { - path = `/readingDicoms?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`; + path = `/readingDicoms?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}` } else { - path = `/noneDicomReading?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}`; + path = `/noneDicomReading?TrialReadingCriterionId=${row.TrialReadingCriterionId}&trialId=${row.TrialId}&subjectCode=${row.SubjectCode}&subjectId=${row.SubjectId}&visitTaskId=${row.Id}&isReadingTaskViewInOrder=${row.IsReadingTaskViewInOrder}&criterionType=${row.CriterionType}&readingTool=${row.ReadingTool}&TokenKey=${token}` } - var routeData = this.$router.resolve({ path }); - this.openWindow = window.open(routeData.href, "_blank"); + var routeData = this.$router.resolve({ path }) + this.openWindow = window.open(routeData.href, '_blank') }, openApplyReReading(row) { - this.rowData = { ...row }; - this.ApplyforReasonVisible = true; + this.rowData = { ...row } + this.ApplyforReasonVisible = true this.ApplyforReasonForm = { Type: null, Remake: null, - }; + } }, editReaderRulesForm(row) { - this.rowData = { ...row }; - this.ReaderRulesFormVisible = true; + this.rowData = { ...row } + this.ReaderRulesFormVisible = true }, openDoctorConsistentRuleSubjectTable(row, IsAutoAllocateGenerateTask) { - this.rowData = { ...row }; - this.DoctorConsistentRuleSubjectTableVisible = true; - this.rowData.IsAutoAllocateGenerateTask = IsAutoAllocateGenerateTask; + this.rowData = { ...row } + this.DoctorConsistentRuleSubjectTableVisible = true + this.rowData.IsAutoAllocateGenerateTask = IsAutoAllocateGenerateTask }, addReaderRulesForm(isg) { - this.isDisable = false; + this.isDisable = false if (isg) { if ( this.$refs[ @@ -1440,115 +1443,115 @@ export default { `GroupConsistentRuleSubjectTable${this.TrialReadingCriterionId}` ][0].list.forEach((v) => { if (v.IsHaveGeneratedTask) { - this.isDisable = true; + this.isDisable = true } - }); + }) } } else { if (this.TaskConsistentRuleList.length > 0) { - this.rowData = { ...this.TaskConsistentRuleList[0] }; + this.rowData = { ...this.TaskConsistentRuleList[0] } this.TaskConsistentRuleList.forEach((v) => { if (v.GeneratedSubjectCount) { - this.isDisable = true; + this.isDisable = true } - }); + }) } else { - this.rowData = {}; + this.rowData = {} } } - this.ReaderRulesFormVisible = true; + this.ReaderRulesFormVisible = true }, clickTab(tab, event) { - this.loading = true; + this.loading = true this.title = `${this.$t( - "trials:selftConsistencyAnalysis:button:config" + 'trials:selftConsistencyAnalysis:button:config' )}(${ this.trialCriterionList.find( (v) => v.TrialReadingCriterionId === this.TrialReadingCriterionId ).TrialReadingCriterionName - })`; + })` getSelfConsistentDoctorStatList({ TrialId: this.trialId, TrialReadingCriterionId: tab.name, }) .then((res) => { if (res.OtherInfo) { - this.ReaderRulesFormVisible = false; - this.RuleOtherInfo = res.OtherInfo; + this.ReaderRulesFormVisible = false + this.RuleOtherInfo = res.OtherInfo } else { - this.ReaderRulesFormVisible = true; + this.ReaderRulesFormVisible = true } // this.ReaderRulesFormVisible = false // this.DoctorConsistentRuleSubjectTableVisible = false - this.TaskConsistentRuleList = res.Result; + this.TaskConsistentRuleList = res.Result // this.IsSelfAnalysis = true // this.ReaderRulesVisible = true // this.getList() - this.loading = false; + this.loading = false }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) }, openExport() { if (this.trialCriterionList.length === 0) { this.$alert( this.$t( - "trials:trials-panel:consistency-analysis:trialCriterionListLength" + 'trials:trials-panel:consistency-analysis:trialCriterionListLength' ) - ); - return; + ) + return } - this.exportVisible = true; + this.exportVisible = true }, openTaskConsistentRule(IsSelfAnalysis) { if (this.trialCriterionList.length === 0) { this.$alert( this.$t( - "trials:trials-panel:consistency-analysis:trialCriterionListLength" + 'trials:trials-panel:consistency-analysis:trialCriterionListLength' ) - ); - return; + ) + return } - this.loading = true; + this.loading = true if (IsSelfAnalysis) { // '配置自身一致性分析规则' this.title = `${this.$t( - "trials:selftConsistencyAnalysis:button:config" + 'trials:selftConsistencyAnalysis:button:config' )}(${ this.trialCriterionList.find( (v) => v.TrialReadingCriterionId === this.TrialReadingCriterionId ).TrialReadingCriterionName - })`; + })` getSelfConsistentDoctorStatList({ TrialId: this.trialId, TrialReadingCriterionId: this.TrialReadingCriterionId, }) .then((res) => { if (res.OtherInfo) { - this.ReaderRulesFormVisible = false; - this.RuleOtherInfo = res.OtherInfo; + this.ReaderRulesFormVisible = false + this.RuleOtherInfo = res.OtherInfo } else { - this.ReaderRulesFormVisible = true; + this.ReaderRulesFormVisible = true } - this.DoctorConsistentRuleSubjectTableVisible = false; - this.TaskConsistentRuleList = res.Result; - this.IsSelfAnalysis = IsSelfAnalysis; - this.ReaderRulesVisible = true; - this.getList(); - this.loading = false; + this.DoctorConsistentRuleSubjectTableVisible = false + this.TaskConsistentRuleList = res.Result + this.IsSelfAnalysis = IsSelfAnalysis + this.ReaderRulesVisible = true + this.getList() + this.loading = false }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) } else { - this.changeNum++; - this.ReaderRulesFormVisible = false; + this.changeNum++ + this.ReaderRulesFormVisible = false // '配置组间一致性分析规则' - this.title = this.$t("trials:grouptConsistencyAnalysis:button:config"); - this.IsSelfAnalysis = IsSelfAnalysis; - this.ReaderRulesVisible2 = true; - this.loading = false; + this.title = this.$t('trials:grouptConsistencyAnalysis:button:config') + this.IsSelfAnalysis = IsSelfAnalysis + this.ReaderRulesVisible2 = true + this.loading = false } // getTaskConsistentRuleList({ // IsSelfAnalysis: IsSelfAnalysis, @@ -1563,57 +1566,57 @@ export default { }, getDoctorUserSelectList() { getDoctorUserSelectList(this.$route.query.trialId).then((res) => { - this.DoctorUserList = res.Result; + this.DoctorUserList = res.Result if (this.DoctorUserList.length > 0) { - this.ReadingType = this.DoctorUserList[0].ReadingType; + this.ReadingType = this.DoctorUserList[0].ReadingType } else { } - }); + }) }, getList() { - this.searchData.TrialId = this.$route.query.trialId; - this.loading = true; + this.searchData.TrialId = this.$route.query.trialId + this.loading = true getAnalysisTaskList(this.searchData) .then((res) => { - this.loading = false; - this.OtherInfo = res.OtherInfo; - this.list = res.Result.CurrentPageData; - this.total = res.Result.TotalCount; - this.ReaderRulesVisible2 = false; - this.AssignMedicalReviewTaskVisible = false; + this.loading = false + this.OtherInfo = res.OtherInfo + this.list = res.Result.CurrentPageData + this.total = res.Result.TotalCount + this.ReaderRulesVisible2 = false + this.AssignMedicalReviewTaskVisible = false }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) }, handleSearch() { - this.searchData.PageIndex = 1; - this.getList(); + this.searchData.PageIndex = 1 + this.getList() }, handleReset() { - this.timeList = null; - this.timeList2 = null; - this.searchData = searchDataDefault(); - this.getList(); + this.timeList = null + this.timeList2 = null + this.searchData = searchDataDefault() + this.getList() }, getSite() { getTrialSiteCodeSelect(this.trialId).then((res) => { - this.siteOptions = res.Result; - }); + this.siteOptions = res.Result + }) }, // 排序 handleSortChange(column) { - if (column.order === "ascending") { - this.searchData.Asc = true; + if (column.order === 'ascending') { + this.searchData.Asc = true } else { - this.searchData.Asc = false; + this.searchData.Asc = false } - this.searchData.SortField = column.prop; - this.searchData.PageIndex = 1; - this.getList(); + this.searchData.SortField = column.prop + this.searchData.PageIndex = 1 + this.getList() }, }, -}; +}