Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
967d08fd57
  1. 4
      src/components/ecrf/dialog-load.vue
  2. 5
      src/components/files/index.vue
  3. 5
      src/components/hm-crf/tinymce/plugins/hm_utils/index.js
  4. 13
      src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue

4
src/components/ecrf/dialog-load.vue

@ -54,7 +54,7 @@ export default {
})
} else {
//
this.$http.get('/crf/template', { params: { crfId: this.id }}).then(({ data: res }) => {
this.$http.get('/project/crf/template/' + this.id).then(({ data: res }) => {
if (res.data) {
this.content = Base64.decode(res.data.content)
}
@ -103,7 +103,7 @@ export default {
.el-dialog__body {
padding: 10px 0;
text-align: center;
background: #606266;
background: rgba(193, 193, 193, 0.2);
height: calc(96vh - 55px);

5
src/components/files/index.vue

@ -11,10 +11,10 @@
</div>
<div class="file-show">
<template v-if="isImg(activeFile.url)">
<el-image :fit="'fill'" :src="activeFile.url|f_url" />
<el-image :fit="'fill'" :src="activeFile.url" />
</template>
<template v-if="isPdf(activeFile.url)">
<pdf :src="activeFile.url|f_url" />
<pdf :src="activeFile.url" />
</template>
</div>
</div>
@ -62,7 +62,6 @@ export default {
isImg(url) {
const type = this.fileType(url)
return ['png', 'jpg', 'jpeg', 'bmp'].indexOf(type.toLowerCase()) >= 0
// console.log(url, t, type, type.toLowerCase())
},
isPdf(url) {
const type = this.fileType(url)

5
src/components/hm-crf/tinymce/plugins/hm_utils/index.js

@ -11,7 +11,8 @@ export const isInclude = function(name, doc) {
// 加载插件所需js
export const loadJS_ifrEditArea = function(editor, jsArr) {
if (jsArr.length > 0) {
const nodeList = document.getElementsByClassName('tox-edit-area__iframe')
const nodeList = Array.from(document.getElementsByClassName('tox-edit-area__iframe'))
nodeList.forEach(node => {
const ifr = node.contentWindow.document
const head = ifr.getElementsByTagName('head')[0]
@ -31,7 +32,7 @@ export const loadJS_ifrEditArea = function(editor, jsArr) {
// 加载插件所需css
export const loadCSS_ifrEditArea = function(editor, cssArr) {
if (cssArr.length > 0) {
const nodeList = document.getElementsByClassName('tox-edit-area__iframe')
const nodeList = Array.from(document.getElementsByClassName('tox-edit-area__iframe'))
nodeList.forEach(node => {
const ifr = node.contentWindow.document
const head = ifr.getElementsByTagName('head')[0]

13
src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue

@ -30,7 +30,7 @@
<el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row.id,{...scope.row})"
@click="addOrUpdateHandle(scope.row.id,scope.row)"
>{{ $t('update') }}</el-button>
<el-button
type="text"
@ -102,17 +102,6 @@ export default {
})
})
}
// addOrUpdateCrf() {
// this.addOrUpdateVisible = true
// this.$nextTick(() => {
// this.$refs.addOrUpdate.dataForm.id = id
// noParams ? '' : this.$refs.addOrUpdate.params = params || {}
// this.$refs.addOrUpdate.dataForm.title = title
// // BUGparams
// // this.$refs.addOrUpdate.dataForm = { id, ...params, title }
// this.$refs.addOrUpdate.init()
// })
// }
}
}
</script>

Loading…
Cancel
Save