IVUS和OCT模板下载
continuous-integration/drone/push Build is pending
Details
continuous-integration/drone/push Build is pending
Details
parent
95987af7cc
commit
ab27f86b68
|
|
@ -213,6 +213,14 @@ export function getIVUSTemplate(param) {
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getIVUSTemplatesZip(param) {
|
||||||
|
return requestDownload({
|
||||||
|
url: '/IVUSCalculate/getIVUSTemplatesZip',
|
||||||
|
method: 'post',
|
||||||
|
responseType: 'blob',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function uploadIVUSTemplate(param) {
|
export function uploadIVUSTemplate(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/IVUSCalculate/uploadIVUSTemplate`,
|
url: `/IVUSCalculate/uploadIVUSTemplate`,
|
||||||
|
|
@ -229,7 +237,14 @@ export function getOCTFCTTemplate(param) {
|
||||||
data: param
|
data: param
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getOCTFCTTemplatesZip(param) {
|
||||||
|
return requestDownload({
|
||||||
|
url: '/OCTCalculate/getOCTFCTTemplatesZip',
|
||||||
|
method: 'post',
|
||||||
|
responseType: 'blob',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
export function uploadOCTFCTTemplate(param) {
|
export function uploadOCTFCTTemplate(param) {
|
||||||
return request({
|
return request({
|
||||||
url: `/OCTCalculate/uploadOCTFCTTemplate`,
|
url: `/OCTCalculate/uploadOCTFCTTemplate`,
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,10 @@
|
||||||
<el-button circle :disabled="scope.row.UploadedFileCount <= 0" icon="el-icon-view"
|
<el-button circle :disabled="scope.row.UploadedFileCount <= 0" icon="el-icon-view"
|
||||||
:title="$t('upload:nonedicom:button:preview')" @click.stop="handlePreviewNoneDicomFiles(scope.row)" />
|
:title="$t('upload:nonedicom:button:preview')" @click.stop="handlePreviewNoneDicomFiles(scope.row)" />
|
||||||
<!--上传--->
|
<!--上传--->
|
||||||
<el-button circle icon="el-icon-upload2" :title="$t('upload:nonedicom:button:upload')" v-if="!forbid"
|
<!-- <el-button circle icon="el-icon-upload2" :title="$t('upload:nonedicom:button:upload')" v-if="!forbid"
|
||||||
@click.native.prevent="handleUpload(scope.row)" :disabled="isReading && !isDownloaded" />
|
@click.native.prevent="handleUpload(scope.row)" :disabled="isReading && !isDownloaded" /> -->
|
||||||
|
<el-button circle icon="el-icon-upload2" :title="$t('upload:nonedicom:button:upload')"
|
||||||
|
@click.native.prevent="handleUpload(scope.row)" />
|
||||||
<!--删除--->
|
<!--删除--->
|
||||||
<el-button :disabled="scope.row.UploadedFileCount <= 0 ||
|
<el-button :disabled="scope.row.UploadedFileCount <= 0 ||
|
||||||
scope.row.ReadingTaskState === 2
|
scope.row.ReadingTaskState === 2
|
||||||
|
|
@ -397,7 +399,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 扫描待上传文件
|
// 扫描待上传文件
|
||||||
beginScanFiles(e) {
|
async beginScanFiles(e) {
|
||||||
var files = [...e.target.files]
|
var files = [...e.target.files]
|
||||||
var sameFiles = [], zipFiles = [], f = false
|
var sameFiles = [], zipFiles = [], f = false
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
|
|
@ -416,11 +418,12 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (zipFiles.length > 0) {
|
if (zipFiles.length > 0) {
|
||||||
zipFiles.forEach(async file => {
|
for (let i = 0; i < zipFiles.length; i++) {
|
||||||
|
let file = zipFiles[i]
|
||||||
let list = await this.readZipFileListRaw(file)
|
let list = await this.readZipFileListRaw(file)
|
||||||
if (!f) f = list.some(i => i.path.indexOf('筛选期') > -1 || i.path.indexOf('研究结束') > -1)
|
if (!f) f = list.some(i => i.path.indexOf('筛选期') > -1 || i.path.indexOf('研究结束') > -1)
|
||||||
list = null
|
list = null
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
if (f) return this.$confirm(this.$t("trials:uploadNonDicoms:confirm:zipNameNonCompliant"), '', {
|
if (f) return this.$confirm(this.$t("trials:uploadNonDicoms:confirm:zipNameNonCompliant"), '', {
|
||||||
type: "warning"
|
type: "warning"
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { saveTaskQuestion, submitTableQuestion, deleteReadingRowAnswer } from '@/api/trials'
|
import { saveTaskQuestion, submitTableQuestion, deleteReadingRowAnswer } from '@/api/trials'
|
||||||
import { resetReadingTask, getIVUSTemplate } from '@/api/reading'
|
import { resetReadingTask, getIVUSTemplatesZip } from '@/api/reading'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import DicomEvent from './../DicomEvent'
|
import DicomEvent from './../DicomEvent'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
|
@ -867,7 +867,7 @@ export default {
|
||||||
const params = {
|
const params = {
|
||||||
visitTaskId: this.visitTaskId
|
visitTaskId: this.visitTaskId
|
||||||
}
|
}
|
||||||
await getIVUSTemplate(params)
|
await getIVUSTemplatesZip(params)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { saveTaskQuestion, submitTableQuestion, deleteReadingRowAnswer } from '@/api/trials'
|
import { saveTaskQuestion, submitTableQuestion, deleteReadingRowAnswer } from '@/api/trials'
|
||||||
import { resetReadingTask, getOCTFCTTemplate, getOCTLipidAngleTemplate } from '@/api/reading'
|
import { resetReadingTask, getOCTFCTTemplatesZip, getOCTLipidAngleTemplate } from '@/api/reading'
|
||||||
import DicomEvent from './../DicomEvent'
|
import DicomEvent from './../DicomEvent'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
|
|
@ -890,7 +890,7 @@ export default {
|
||||||
visitTaskId: this.visitTaskId
|
visitTaskId: this.visitTaskId
|
||||||
}
|
}
|
||||||
if (lesionType === 104) {
|
if (lesionType === 104) {
|
||||||
await getOCTFCTTemplate(params)
|
await getOCTFCTTemplatesZip(params)
|
||||||
} else {
|
} else {
|
||||||
await getOCTLipidAngleTemplate(params)
|
await getOCTLipidAngleTemplate(params)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue