阅片导入接口修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
424a59c4d9
commit
b644098203
|
@ -286,4 +286,11 @@ export function deleteSingleTableQuestionMark(param, type) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 阅片导入
|
||||||
|
export function readingImport(param) {
|
||||||
|
return request({
|
||||||
|
url: `/ReadingCalculate/readingImport`,
|
||||||
|
method: 'post',
|
||||||
|
data: param
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { uploadIVUSTemplate } from '@/api/reading'
|
import { readingImport } from '@/api/reading'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
visitTaskId: {
|
visitTaskId: {
|
||||||
|
@ -63,7 +63,8 @@ export default {
|
||||||
var data = new FormData()
|
var data = new FormData()
|
||||||
data.append('file', param.file)
|
data.append('file', param.file)
|
||||||
data.append('visitTaskId', this.visitTaskId)
|
data.append('visitTaskId', this.visitTaskId)
|
||||||
await uploadIVUSTemplate(data)
|
data.append('readingImportType', 0)
|
||||||
|
await readingImport(data)
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$message.success('导入成功!')
|
this.$message.success('导入成功!')
|
||||||
loading.close()
|
loading.close()
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { uploadOCTFCTTemplate, uploadOCTLipidAngleTemplate } from '@/api/reading'
|
import { readingImport } from '@/api/reading'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
visitTaskId: {
|
visitTaskId: {
|
||||||
|
@ -67,10 +67,13 @@ export default {
|
||||||
var data = new FormData()
|
var data = new FormData()
|
||||||
data.append('file', param.file)
|
data.append('file', param.file)
|
||||||
data.append('visitTaskId', this.visitTaskId)
|
data.append('visitTaskId', this.visitTaskId)
|
||||||
|
|
||||||
if (this.lesionType === 112) {
|
if (this.lesionType === 112) {
|
||||||
await uploadOCTFCTTemplate(data)
|
data.append('readingImportType', 1)
|
||||||
|
await readingImport(data)
|
||||||
} else {
|
} else {
|
||||||
await uploadOCTLipidAngleTemplate(data)
|
data.append('readingImportType', 2)
|
||||||
|
await readingImport(data)
|
||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$message.success('导入成功!')
|
this.$message.success('导入成功!')
|
||||||
|
|
Loading…
Reference in New Issue