下载bug
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
cb61f7415e
commit
7ff424ad65
|
@ -201,10 +201,10 @@ export default {
|
||||||
},
|
},
|
||||||
// 下载
|
// 下载
|
||||||
handleDownload(row) {
|
handleDownload(row) {
|
||||||
this.loading = true
|
window.open(this.OSSclientConfig.basePath + row.Path)
|
||||||
DownloadCommonDoc(row.Code).then(data => {
|
// DownloadCommonDoc(row.Code).then(data => {
|
||||||
this.loading = false
|
// this.loading = false
|
||||||
}).catch(() => { this.loading = false })
|
// }).catch(() => { this.loading = false })
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
|
|
|
@ -320,7 +320,7 @@ export default {
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.$emit('setFormItemData', obj)
|
this.$emit('setFormItemData', obj)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
@ -331,16 +331,12 @@ export default {
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', param.file)
|
formData.append('file', param.file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
var file = await this.fileToBlob(param.file)
|
||||||
if (res.IsSuccess) {
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
this.urls.push(res.Result.Path)
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -349,7 +349,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleConfig(row) {
|
handleConfig(row) {
|
||||||
this.rowData = { ...row }
|
this.rowData = { ...row }
|
||||||
this.config.title = `${this.$fd('LesionType', row.LesionType)}:表格问题`
|
this.config.title = `${this.$fd('LesionType', row.LesionType)}:${this.$t('trials:readingUnit:qsList:title:tableQs')}`
|
||||||
this.config.visible = true
|
this.config.visible = true
|
||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
|
|
|
@ -75,6 +75,7 @@ export default {
|
||||||
preview(index, row) {
|
preview(index, row) {
|
||||||
const filePath = row.FullPath
|
const filePath = row.FullPath
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
|
console.log(this.OSSclientConfig.basePath + filePath)
|
||||||
window.open(this.OSSclientConfig.basePath + filePath, '_blank')
|
window.open(this.OSSclientConfig.basePath + filePath, '_blank')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,14 +26,7 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link
|
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
|
||||||
style="color: #428bca;"
|
|
||||||
tag="a"
|
|
||||||
:to="{
|
|
||||||
path: `/trialsResume?doctorId=${scope.row.Id}&token=${token}`,
|
|
||||||
}"
|
|
||||||
target="_blank"
|
|
||||||
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</router-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -109,6 +102,9 @@ export default {
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() { this.initPage() },
|
||||||
methods: {
|
methods: {
|
||||||
|
go(path) {
|
||||||
|
window.open(path)
|
||||||
|
},
|
||||||
initPage() {
|
initPage() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,14 +37,7 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link
|
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
|
||||||
style="color: #428bca;"
|
|
||||||
tag="a"
|
|
||||||
:to="{
|
|
||||||
path: `/trialsResume?doctorId=${scope.row.Id}&token=${token}`,
|
|
||||||
}"
|
|
||||||
target="_blank"
|
|
||||||
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</router-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -124,6 +117,9 @@ export default {
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() { this.initPage() },
|
||||||
methods: {
|
methods: {
|
||||||
|
go(path) {
|
||||||
|
window.open(path)
|
||||||
|
},
|
||||||
initPage() {
|
initPage() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
|
@ -124,14 +124,15 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link
|
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
|
||||||
style="color: #428bca;"
|
<!-- <router-link-->
|
||||||
tag="a"
|
<!-- style="color: #428bca;"-->
|
||||||
:to="{
|
<!-- tag="a"-->
|
||||||
path: `/trialsResume?doctorId=${scope.row.Id}&token=${token}`,
|
<!-- :to="{-->
|
||||||
}"
|
<!-- path: `/trialsResume?doctorId=${scope.row.Id}&token=${token}`,-->
|
||||||
target="_blank"
|
<!-- }"-->
|
||||||
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</router-link>
|
<!-- target="_blank"-->
|
||||||
|
<!-- >{{ scope.row.LastName }} / {{ scope.row.FirstName }}</router-link>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -299,6 +300,9 @@ export default {
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() { this.initPage() },
|
||||||
methods: {
|
methods: {
|
||||||
|
go(path) {
|
||||||
|
window.open(path)
|
||||||
|
},
|
||||||
initPage() {
|
initPage() {
|
||||||
this.getList()
|
this.getList()
|
||||||
store.dispatch('global/getHospital')
|
store.dispatch('global/getHospital')
|
||||||
|
|
|
@ -47,14 +47,7 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<router-link
|
<el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button>
|
||||||
style="color: #428bca;"
|
|
||||||
tag="a"
|
|
||||||
:to="{
|
|
||||||
path: `/trialsResume?doctorId=${scope.row.Id}&token=${token}`,
|
|
||||||
}"
|
|
||||||
target="_blank"
|
|
||||||
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</router-link>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -168,6 +161,9 @@ export default {
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() { this.initPage() },
|
||||||
methods: {
|
methods: {
|
||||||
|
go(path) {
|
||||||
|
window.open(path)
|
||||||
|
},
|
||||||
initPage() {
|
initPage() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
|
@ -325,7 +325,7 @@ export default {
|
||||||
locateAnnotation(question) {
|
locateAnnotation(question) {
|
||||||
this.$emit('locateAnnotation', question)
|
this.$emit('locateAnnotation', question)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
@ -334,18 +334,12 @@ export default {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -376,7 +376,7 @@ export default {
|
||||||
locateAnnotation(question) {
|
locateAnnotation(question) {
|
||||||
this.$emit('locateAnnotation', question)
|
this.$emit('locateAnnotation', question)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
@ -385,18 +385,12 @@ export default {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -207,7 +207,7 @@
|
||||||
:class="{disabled:fileList.length >= question.ImageCount}"
|
:class="{disabled:fileList.length >= question.ImageCount}"
|
||||||
>
|
>
|
||||||
<el-button slot="default" class="el-icon-plus">
|
<el-button slot="default" class="el-icon-plus">
|
||||||
上传附件
|
{{this.$t('common:button:upload')}}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <div slot="file" slot-scope="{file}">-->
|
<!-- <div slot="file" slot-scope="{file}">-->
|
||||||
<!-- <div class="el-upload-list__item-name"></div>-->
|
<!-- <div class="el-upload-list__item-name"></div>-->
|
||||||
|
@ -680,7 +680,7 @@ export default {
|
||||||
},
|
},
|
||||||
openAddTableCol(row, index) {
|
openAddTableCol(row, index) {
|
||||||
this.addOrEdit.visible = true
|
this.addOrEdit.visible = true
|
||||||
this.addOrEdit.title = row.QuestionName + '表格问题'
|
this.addOrEdit.title = row.QuestionName + this.$t('trials:readingUnit:qsList:title:tableQs')
|
||||||
this.QuestionsList = row.TableQuestions.Questions
|
this.QuestionsList = row.TableQuestions.Questions
|
||||||
this.AnswersList = row.TableQuestions.Answers
|
this.AnswersList = row.TableQuestions.Answers
|
||||||
if (!index && index !== 0) {
|
if (!index && index !== 0) {
|
||||||
|
|
|
@ -264,7 +264,7 @@ export default {
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.$emit('setFormItemData', obj)
|
this.$emit('setFormItemData', obj)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.el-button'),
|
target: document.querySelector('.el-button'),
|
||||||
|
@ -272,18 +272,12 @@ export default {
|
||||||
lock: true,
|
lock: true,
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `/api/${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -266,7 +266,7 @@ export default {
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.$emit('setFormItemData', obj)
|
this.$emit('setFormItemData', obj)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
@ -275,18 +275,12 @@ export default {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -230,7 +230,7 @@
|
||||||
:visible.sync="imgVisible"
|
:visible.sync="imgVisible"
|
||||||
width="600px"
|
width="600px"
|
||||||
>
|
>
|
||||||
<el-image :src="OSSclientConfig.basePath + imageUrl" width="100%">
|
<el-image :src="imageUrl" crossOrigin="Anonymous" width="100%">
|
||||||
<!-- 加载中 -->
|
<!-- 加载中 -->
|
||||||
<div slot="placeholder" class="image-slot">
|
<div slot="placeholder" class="image-slot">
|
||||||
{{ $t('trials:readingUnit:qsList:message:loading') }}<span class="dot">...</span>
|
{{ $t('trials:readingUnit:qsList:message:loading') }}<span class="dot">...</span>
|
||||||
|
@ -626,8 +626,9 @@ export default {
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.$emit('setFormItemData', obj)
|
this.$emit('setFormItemData', obj)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
console.log(this.visitTaskId)
|
||||||
|
if (!this.visitTaskId) {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
|
@ -635,18 +636,37 @@ export default {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/preview/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
loading.close()
|
||||||
|
} else {
|
||||||
|
const loading = this.$loading({
|
||||||
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
fullscreen: false,
|
||||||
|
lock: true,
|
||||||
|
text: 'Loading',
|
||||||
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
|
var file = await this.fileToBlob(param.file)
|
||||||
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
|
loading.close()
|
||||||
|
}
|
||||||
|
// uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
||||||
|
// if (res.IsSuccess) {
|
||||||
|
// this.fileList.push({ url: `${res.Result.Path}` })
|
||||||
|
// this.urls.push(res.Result.Path)
|
||||||
|
// this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
|
// }
|
||||||
|
// loading.close()
|
||||||
|
// }).catch(() => {
|
||||||
|
// loading.close()
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -266,7 +266,7 @@ export default {
|
||||||
},
|
},
|
||||||
openAddTableCol(row) {
|
openAddTableCol(row) {
|
||||||
this.addOrEdit.visible = true
|
this.addOrEdit.visible = true
|
||||||
this.addOrEdit.title = row.QuestionName + '表格问题'
|
this.addOrEdit.title = row.QuestionName + this.$t('trials:readingUnit:qsList:title:tableQs')
|
||||||
this.QuestionsList = row.TableQuestions.Questions
|
this.QuestionsList = row.TableQuestions.Questions
|
||||||
this.AnswersList = row.TableQuestions.Answers
|
this.AnswersList = row.TableQuestions.Answers
|
||||||
this.QuestionsForm = {}
|
this.QuestionsForm = {}
|
||||||
|
@ -316,7 +316,7 @@ export default {
|
||||||
setFormItemData(obj) {
|
setFormItemData(obj) {
|
||||||
this.$emit('setFormItemData', obj)
|
this.$emit('setFormItemData', obj)
|
||||||
},
|
},
|
||||||
uploadScreenshot(param) {
|
async uploadScreenshot(param) {
|
||||||
if (!this.visitTaskId) return
|
if (!this.visitTaskId) return
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
target: document.querySelector('.ecrf-wrapper'),
|
target: document.querySelector('.ecrf-wrapper'),
|
||||||
|
@ -325,18 +325,12 @@ export default {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
spinner: 'el-icon-loading'
|
spinner: 'el-icon-loading'
|
||||||
})
|
})
|
||||||
const formData = new FormData()
|
var file = await this.fileToBlob(param.file)
|
||||||
formData.append('file', param.file)
|
const res = await this.OSSclient.put(`/${this.trialId}/ReadAttachment/${this.subjectId}/${this.visitTaskId}/${param.file.name}`, file)
|
||||||
uploadReadingAnswerImage(this.$route.query.trialId, this.visitTaskId, formData).then(res => {
|
this.fileList.push({ name: param.file.name, url: this.$getObjectName(res.url) })
|
||||||
if (res.IsSuccess) {
|
this.urls.push(this.$getObjectName(res.url))
|
||||||
this.fileList.push({ url: `${res.Result.Path}` })
|
|
||||||
this.urls.push(res.Result.Path)
|
|
||||||
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
this.$emit('setFormItemData', { key: this.question.Id, val: this.urls.length > 0 ? this.urls.join('|') : '' })
|
||||||
}
|
|
||||||
loading.close()
|
loading.close()
|
||||||
}).catch(() => {
|
|
||||||
loading.close()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
handleBeforeUpload(file) {
|
handleBeforeUpload(file) {
|
||||||
// 检测文件类型是否符合要求
|
// 检测文件类型是否符合要求
|
||||||
|
|
|
@ -1431,10 +1431,11 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDownloadTpl(row) {
|
handleDownloadTpl(row) {
|
||||||
this.listLoading = true
|
window.open(this.OSSclientConfig.basePath + row.Path)
|
||||||
DownloadTrialClinicalFile(row.Id).then(data => {
|
// this.listLoading = true
|
||||||
this.listLoading = false
|
// DownloadTrialClinicalFile(row.Id).then(data => {
|
||||||
}).catch(() => { this.listLoading = false })
|
// this.listLoading = false
|
||||||
|
// }).catch(() => { this.listLoading = false })
|
||||||
},
|
},
|
||||||
handleSelectable(row) {
|
handleSelectable(row) {
|
||||||
if (!row.IsApply) {
|
if (!row.IsApply) {
|
||||||
|
|
Loading…
Reference in New Issue