Compare commits
No commits in common. "8e554bbeb844ed1a988c105846170cdb6a673d6d" and "a980f6ca585ff7c49b0a824471099584bea89a46" have entirely different histories.
8e554bbeb8
...
a980f6ca58
Binary file not shown.
Before Width: | Height: | Size: 62 KiB |
|
@ -50,7 +50,7 @@
|
|||
:ref="`img${i}`"
|
||||
:key="item.Id"
|
||||
crossorigin="anonymous"
|
||||
:src="item.FileType&&item.FileType.indexOf('zip')>=0?zipImg:`${OSSclientConfig.basePath}${item.Path}`"
|
||||
:src="`${OSSclientConfig.basePath}${item.Path}`"
|
||||
:style="imgStyle"
|
||||
style="max-width:100%;max-height: 100%;"
|
||||
@load="handleImgLoad"
|
||||
|
@ -68,7 +68,7 @@
|
|||
|
||||
<script>
|
||||
import { on, off } from 'element-ui/src/utils/dom'
|
||||
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util';
|
||||
import { rafThrottle, isFirefox } from 'element-ui/src/utils/util'
|
||||
|
||||
const mousewheelEventName = isFirefox() ? 'DOMMouseScroll' : 'mousewheel'
|
||||
|
||||
|
@ -102,10 +102,6 @@ export default {
|
|||
initialIndex: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
zipImg:{
|
||||
required:true,
|
||||
default:''
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -121,7 +117,7 @@ export default {
|
|||
offsetX: 0,
|
||||
offsetY: 0,
|
||||
enableTransition: false
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
:study-code="previewImage.studyCode"
|
||||
:body-part="previewImage.bodyPart"
|
||||
:modality="previewImage.modality"
|
||||
:zip-img='zipImg'
|
||||
/>
|
||||
</div>
|
||||
<div class="thumbnail-wrapper" style="z-index:999;background-color:#fff;">
|
||||
|
@ -43,7 +42,7 @@
|
|||
}"
|
||||
@click="selected(index)"
|
||||
>
|
||||
<img :title="item.FileName" crossorigin="anonymous" :src="item.FileType&&item.FileType.indexOf('zip')>=0?zipImg:`${OSSclientConfig.basePath}${item.Path}`">
|
||||
<img :title="item.FileName" crossorigin="anonymous" :src="`${OSSclientConfig.basePath + item.Path}`">
|
||||
<p v-if="item.FileName" class="item-date">
|
||||
{{ `${index+1}` }}
|
||||
</p>
|
||||
|
@ -63,8 +62,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import ImageViewer from './image-viewer';
|
||||
import zipImg from "@/assets/zip.png";
|
||||
import ImageViewer from './image-viewer'
|
||||
export default {
|
||||
name: 'Preview',
|
||||
components: {
|
||||
|
@ -106,8 +104,7 @@ export default {
|
|||
previewVisible: true,
|
||||
translateX: 0,
|
||||
pageSize: 0, // 一页展示的图片数
|
||||
urlList: [],
|
||||
zipImg
|
||||
urlList: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -237,11 +237,11 @@ export default {
|
|||
var dateTime
|
||||
if (this.clinicalTrialForm.StartTime) {
|
||||
dateTime = new Date(this.clinicalTrialForm.StartTime)
|
||||
this.clinicalTrialForm.StartTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format('YYYY') + "-01"
|
||||
this.clinicalTrialForm.StartTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format('YYYY')
|
||||
}
|
||||
if (this.clinicalTrialForm.EndTime) {
|
||||
dateTime = new Date(this.clinicalTrialForm.EndTime)
|
||||
this.clinicalTrialForm.EndTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format("YYYY") + "-01"
|
||||
this.clinicalTrialForm.EndTime = moment(new Date(dateTime.setDate(dateTime.getDate()+1))).format("YYYY")
|
||||
}
|
||||
addOrUpdateTrialExperience(this.clinicalTrialForm).then(res => {
|
||||
this.isDisabled = false
|
||||
|
|
Loading…
Reference in New Issue