Compare commits
No commits in common. "b92b55a45af16410f73270f243289d8d22a86424" and "49940ab03488bcfe36b3612dfa726f4db46aec25" have entirely different histories.
b92b55a45a
...
49940ab034
|
@ -12,7 +12,7 @@
|
|||
<!-- :src="`/static/pdfjs/web/viewer.html?file=${filePath}`">-->
|
||||
<!-- </pdf>-->
|
||||
<iframe v-else
|
||||
:src="`/static/onlyOffice/viewer.html?url=${OSSclientConfig.basePath}${filePath}?onlyOffice_url=${onlyOffice_url}&type=${fileType}&title=${title}&documentType=${documentType}&userName=${currentUser}`"
|
||||
:src="`/static/onlyOffice/viewer.html?url=${OSSclientConfig.basePath}${filePath}?type=${fileType}&title=${title}&documentType=${documentType}&userName=${currentUser}`"
|
||||
width="100%" height="100%" frameborder="0" crossorigin="anonymous" />
|
||||
<!-- <div v-else>
|
||||
{{ $t('common:message:downloadFile') }}
|
||||
|
@ -45,8 +45,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
COMPANY: process.env.VUE_APP_COMPANY_NAME,
|
||||
onlyOffice_url: process.env.VUE_APP_ONLYOFFICE_URL
|
||||
COMPANY: process.env.VUE_APP_COMPANY_NAME
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -77,7 +77,6 @@ export default {
|
|||
FileTypeId: '',
|
||||
Name: '',
|
||||
Path: '',
|
||||
IsPublish: null,
|
||||
IsDeleted: true,
|
||||
SignViewMinimumMinutes: null,
|
||||
DocUserSignType: 0,
|
||||
|
@ -138,7 +137,6 @@ export default {
|
|||
this.form.Name = this.data.Name
|
||||
this.form.Path = this.data.Path
|
||||
this.form.IsDeleted = this.data.IsDeleted
|
||||
this.form.IsPublish = this.data.IsPublish
|
||||
this.form.SignViewMinimumMinutes = this.data.SignViewMinimumMinutes
|
||||
this.form.DocUserSignType = this.data.DocUserSignType
|
||||
this.form.CurrentStaffTrainDays = this.data.CurrentStaffTrainDays
|
||||
|
|
|
@ -58,7 +58,7 @@ export default {
|
|||
FilePath: null,
|
||||
FileSize: null,
|
||||
OffLine: false,
|
||||
SystemDocumentId: null,
|
||||
SystemDocumentId: null
|
||||
},
|
||||
rules: {
|
||||
Name: [
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<span class="name text-ellipsis" :title="rowData.Name">{{ rowData.Name }}</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-button size="mini" type="primary" style="float:right" @click.stop="edit({})" v-if="!isView">
|
||||
<el-button size="mini" type="primary" style="float:right" @click.stop="edit({})">
|
||||
{{ $t('common:button:add') }}</el-button>
|
||||
<el-table :data="list" style="width: 100%" max-height="300px" v-loading="loading"
|
||||
@sort-change="handleSortByColumn">
|
||||
|
@ -15,7 +15,7 @@
|
|||
<el-table-column prop="Name" :label="$t('dictionary:signature:attachmentList:FileName')"
|
||||
sortable="custom" />
|
||||
<el-table-column prop="OffLine" :label="$t('dictionary:signature:attachmentList:OffLine')"
|
||||
sortable="custom" v-if="!isView">
|
||||
sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-switch v-model="scope.row.OffLine" @change="(val) => OffLine(scope.row, val)"
|
||||
:active-value="true" :inactive-value="false" :active-text="$fd('YesOrNo', true)"
|
||||
|
@ -30,14 +30,14 @@
|
|||
<el-button size="mini" type="text" @click.stop="preview(scope.row)">
|
||||
{{ $t('common:button:preview') }}
|
||||
</el-button>
|
||||
<el-button size="mini" type="text" @click.stop="edit(scope.row)" v-if="!isView">
|
||||
<el-button size="mini" type="text" @click.stop="edit(scope.row)">
|
||||
{{ $t('common:button:edit') }}
|
||||
</el-button>
|
||||
<!-- <el-button size="mini" type="text" @click.stop="OffLine(scope.row, true)"
|
||||
:disabled="scope.row.OffLine">
|
||||
{{ $t('dictionary:signature:attachmentList:OffLine') }}
|
||||
</el-button> -->
|
||||
<el-button size="mini" type="text" @click.stop="del(scope.row)" v-if="!isView">
|
||||
<el-button size="mini" type="text" @click.stop="del(scope.row)">
|
||||
{{ $t('common:button:delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
|
@ -71,7 +71,6 @@ const defaultSearchData = () => {
|
|||
PageIndex: 1,
|
||||
PageSize: 1000,
|
||||
Asc: false,
|
||||
OffLine: null,
|
||||
SortField: null
|
||||
}
|
||||
}
|
||||
|
@ -92,10 +91,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
isView: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
rowData: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
|
@ -175,9 +170,6 @@ export default {
|
|||
if (!this.SystemDocumentId) return false
|
||||
this.loading = true
|
||||
this.searchData.SystemDocumentId = this.SystemDocumentId
|
||||
if (this.isView) {
|
||||
this.searchData.OffLine = false
|
||||
}
|
||||
let res = await getSystemDocumentAttachmentList(this.searchData)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
|
|
|
@ -78,7 +78,7 @@ const defaultSearchData = () => {
|
|||
PageIndex: 1,
|
||||
PageSize: 1000,
|
||||
Asc: false,
|
||||
OffLine: null,
|
||||
OffLine: false,
|
||||
SortField: null
|
||||
}
|
||||
}
|
||||
|
@ -96,10 +96,6 @@ export default {
|
|||
visible: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
isView: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@ -141,9 +137,6 @@ export default {
|
|||
if (!this.SystemDocumentId) return false
|
||||
this.loading = true
|
||||
this.searchData.SystemDocumentId = this.SystemDocumentId
|
||||
if (this.isView) {
|
||||
this.searchData.OffLine = false
|
||||
}
|
||||
let res = await getSystemDocumentAttachmentList(this.searchData)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
|
|
|
@ -84,10 +84,7 @@
|
|||
<el-table-column prop="AttachmentCount" :label="$t('dictionary:signature:table:AttachmentCount')"
|
||||
show-overflow-tooltip sortable="custom" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">
|
||||
{{ scope.row.AttachmentCount }}
|
||||
<i class="el-icon-upload2" />
|
||||
</el-button>
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="SignViewMinimumMinutes" :label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
|
||||
|
@ -164,16 +161,11 @@
|
|||
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
||||
</el-dialog>
|
||||
<!--附件列表-->
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="currentRow" :SystemDocumentId="SystemDocumentId"
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="rowData" :SystemDocumentId="SystemDocumentId"
|
||||
@getList="getList" />
|
||||
<!-- 预览文件 -->
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" v-if="perview_visible" />
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="$t('common:button:preview')"
|
||||
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;font-size: 18px;color:#409EFF"
|
||||
@click.stop="openAttachment(currentRow)" v-if="currentRow.AttachmentCount">{{
|
||||
$t('trials:signRecords:table:AttachmentCount') }} ({{
|
||||
currentRow.AttachmentCount }})</span>
|
||||
<div class="base-modal-body" style="border: 2px solid #ccc; padding: 10px">
|
||||
<PreviewFile v-if="previewVisible" :file-path="currentPath" :file-type="currentType" />
|
||||
</div>
|
||||
|
@ -190,7 +182,6 @@ import TemplateForm from './TemplateForm'
|
|||
|
||||
import attachmentList from './attachmentList'
|
||||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
import attachmentPreview from './attachmentPreview'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
FileTypeId: '',
|
||||
|
@ -206,7 +197,7 @@ const searchDataDefault = () => {
|
|||
}
|
||||
export default {
|
||||
name: 'SignatureTemplate',
|
||||
components: { BaseContainer, Pagination, TemplateForm, PreviewFile, attachmentList, attachmentPreview },
|
||||
components: { BaseContainer, Pagination, TemplateForm, PreviewFile, attachmentList },
|
||||
dicts: ['Sys_Document'],
|
||||
props: {
|
||||
isSystem: {
|
||||
|
@ -240,7 +231,7 @@ export default {
|
|||
width: '800px',
|
||||
},
|
||||
multipleSelection: [],
|
||||
perview_visible: false
|
||||
rowData: {}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -278,14 +269,10 @@ export default {
|
|||
console.log(err)
|
||||
}
|
||||
},
|
||||
openAttachment(row, isList = false) {
|
||||
openAttachment(row) {
|
||||
this.rowData = row
|
||||
this.SystemDocumentId = row.Id
|
||||
this.currentRow = { ...row }
|
||||
if (!isList) {
|
||||
this.perview_visible = true
|
||||
} else {
|
||||
this.config.visible = true
|
||||
}
|
||||
this.config.visible = true
|
||||
},
|
||||
changeTimeList() {
|
||||
if (this.timeList) {
|
||||
|
|
|
@ -126,8 +126,7 @@
|
|||
<el-table-column :label="$t('trials:signRecords:table:AttachmentCount')" prop="AttachmentCount"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
||||
}}</el-button>
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 文件级别 -->
|
||||
|
@ -209,18 +208,15 @@
|
|||
<!-- 预览文件 -->
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="$t('trials:signRecords:action:preview')"
|
||||
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;font-size: 18px;color:#409EFF"
|
||||
@click.stop="openAttachment(currentRow)" v-if="currentRow.AttachmentCount">{{
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;" @click.stop="openAttachment(currentRow)"
|
||||
v-if="currentRow.AttachmentCount">{{
|
||||
$t('trials:signRecords:table:AttachmentCount') }} ({{
|
||||
currentRow.AttachmentCount }})</span>
|
||||
<div class="base-modal-body" style="border: 2px solid #ccc; padding: 10px">
|
||||
<PreviewFile v-if="previewVisible" :file-path="currentPath" :file-type="currentType" @getList="getList" />
|
||||
</div>
|
||||
</el-dialog>
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="currentRow" :SystemDocumentId="SystemDocumentId"
|
||||
:isView="true" @getList="getList" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" :isView="true"
|
||||
v-if="perview_visible" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" v-if="perview_visible" />
|
||||
</BaseContainer>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -237,7 +233,6 @@ import BaseContainer from '@/components/BaseContainer'
|
|||
import Pagination from '@/components/Pagination'
|
||||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
import attachmentPreview from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview'
|
||||
import attachmentList from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentList'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
UserName: null,
|
||||
|
@ -258,7 +253,7 @@ const searchDataDefault = () => {
|
|||
}
|
||||
export default {
|
||||
name: 'AttachmentsManagement',
|
||||
components: { BaseContainer, Pagination, PreviewFile, attachmentPreview, attachmentList },
|
||||
components: { BaseContainer, Pagination, PreviewFile, attachmentPreview },
|
||||
props: {
|
||||
isDoc: {
|
||||
type: Boolean,
|
||||
|
@ -297,11 +292,6 @@ export default {
|
|||
timeListC: [],
|
||||
SystemDocumentId: null,
|
||||
perview_visible: null,
|
||||
config: {
|
||||
visible: false,
|
||||
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||
width: '800px',
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -310,15 +300,10 @@ export default {
|
|||
this.getUserType()
|
||||
},
|
||||
methods: {
|
||||
openAttachment(row, isList = false) {
|
||||
openAttachment(row) {
|
||||
if (!row.AttachmentCount) return false
|
||||
this.SystemDocumentId = row.Id
|
||||
this.currentRow = { ...row }
|
||||
if (!isList) {
|
||||
this.perview_visible = true
|
||||
} else {
|
||||
this.config.visible = true
|
||||
}
|
||||
this.perview_visible = true
|
||||
},
|
||||
changeTimeList() {
|
||||
if (this.timeList) {
|
||||
|
|
|
@ -49,8 +49,7 @@
|
|||
<el-table-column :label="$t('trials:self-attachment:table:AttachmentCount')" prop="AttachmentCount"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
||||
}}</el-button>
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 是否废除 -->
|
||||
|
@ -97,8 +96,8 @@
|
|||
<!-- 预览文件 -->
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="title" :fullscreen="true" append-to-body
|
||||
custom-class="base-dialog-wrapper">
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;font-size: 18px;color:#409EFF"
|
||||
@click.stop="openAttachment(currentRow)" v-if="currentRow.AttachmentCount">{{
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;" @click.stop="openAttachment(currentRow)"
|
||||
v-if="currentRow.AttachmentCount">{{
|
||||
$t('trials:self-attachment:table:AttachmentCount') }} ({{
|
||||
currentRow.AttachmentCount }})</span>
|
||||
<span v-if="!currentIsConfirm" style="position: fixed;right: 75px;top: 14px;">
|
||||
|
@ -130,10 +129,7 @@
|
|||
<SignForm :is-system-doc="currentRow.IsSystemDoc" :document-id="currentRow.Id" :file-name="fileName"
|
||||
:trial-id="trialId" @closeDialog="closeSignDialog" />
|
||||
</el-dialog>
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="currentRow" :SystemDocumentId="SystemDocumentId"
|
||||
:isView="true" @getList="getList" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" :isView="true"
|
||||
v-if="perview_visible" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" v-if="perview_visible" />
|
||||
</BaseContainer>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -144,7 +140,6 @@ import PreviewFile from '@/components/PreviewFile/index'
|
|||
import SignForm from './components/SignForm'
|
||||
import store from '@/store'
|
||||
import attachmentPreview from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview'
|
||||
import attachmentList from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentList'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
FileTypeId: '',
|
||||
|
@ -158,7 +153,7 @@ const searchDataDefault = () => {
|
|||
}
|
||||
export default {
|
||||
name: 'TrialAttachments',
|
||||
components: { BaseContainer, Pagination, PreviewFile, SignForm, attachmentPreview, attachmentList },
|
||||
components: { BaseContainer, Pagination, PreviewFile, SignForm, attachmentPreview },
|
||||
data() {
|
||||
return {
|
||||
searchData: searchDataDefault(),
|
||||
|
@ -181,12 +176,7 @@ export default {
|
|||
typeOptions: [],
|
||||
trialId: this.$route.query.trialId,
|
||||
SystemDocumentId: null,
|
||||
perview_visible: null,
|
||||
config: {
|
||||
visible: false,
|
||||
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||
width: '800px',
|
||||
},
|
||||
perview_visible: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -203,15 +193,10 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
openAttachment(row, isList = false) {
|
||||
openAttachment(row) {
|
||||
if (!row.AttachmentCount) return false
|
||||
this.SystemDocumentId = row.Id
|
||||
this.currentRow = { ...row }
|
||||
if (!isList) {
|
||||
this.perview_visible = true
|
||||
} else {
|
||||
this.config.visible = true
|
||||
}
|
||||
this.perview_visible = true
|
||||
},
|
||||
// 获取系统文件数据
|
||||
getList() {
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
</el-form-item>
|
||||
<!-- 模板 -->
|
||||
<el-form-item
|
||||
v-if="form.ClinicalUploadType === 1 && !isEN "
|
||||
v-if="form.ClinicalUploadType === 1"
|
||||
:label="$t('trials:processCfg:title:module')"
|
||||
>
|
||||
<div class="upload-container">
|
||||
|
@ -147,7 +147,7 @@
|
|||
</el-form-item>
|
||||
<!-- 英文模板 -->
|
||||
<el-form-item
|
||||
v-if="form.ClinicalUploadType === 1 && isEN "
|
||||
v-if="form.ClinicalUploadType === 1"
|
||||
:label="$t('trials:processCfg:title:enModule')"
|
||||
>
|
||||
<div class="upload-container">
|
||||
|
@ -222,11 +222,7 @@ export default {
|
|||
required: true,
|
||||
},
|
||||
},
|
||||
computed:{
|
||||
isEN() {
|
||||
return this.$i18n.locale !== 'zh'
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
<el-table-column :label="$t('trials:sysDocBeSigned:table:AttachmentCount')" prop="AttachmentCount"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
||||
}}</el-button>
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('trials:sysDocBeSigned:table:uploadTime')" prop="CreateTime" show-overflow-tooltip
|
||||
|
@ -56,8 +55,8 @@
|
|||
<!-- 预览/签署文件 -->
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="title" :fullscreen="true" append-to-body
|
||||
custom-class="base-dialog-wrapper">
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;font-size: 18px;color:#409EFF"
|
||||
@click.stop="openAttachment(currentRow)" v-if="currentRow.AttachmentCount">{{
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;" @click.stop="openAttachment(currentRow)"
|
||||
v-if="currentRow.AttachmentCount">{{
|
||||
$t('trials:sysDocBeSigned:table:AttachmentCount') }} ({{
|
||||
currentRow.AttachmentCount }})</span>
|
||||
<span v-if="!currentIsConfirm" style="position: fixed; right: 75px; top: 14px">
|
||||
|
@ -92,10 +91,7 @@
|
|||
<SignForm :is-system-doc="currentRow.IsSystemDoc" :document-id="currentRow.Id" :file-name="fileName"
|
||||
@closeDialog="closeSignDialog" />
|
||||
</el-dialog>
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="currentRow" :SystemDocumentId="SystemDocumentId"
|
||||
:isView="true" @getList="getList" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" :isView="true"
|
||||
v-if="perview_visible" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" v-if="perview_visible" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -108,7 +104,6 @@ import Pagination from '@/components/Pagination'
|
|||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
import SignForm from '@/views/trials/trials-panel/attachments/self-attachment/components/SignForm'
|
||||
import attachmentPreview from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview'
|
||||
import attachmentList from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentList'
|
||||
import { mapGetters } from 'vuex'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
|
@ -120,7 +115,7 @@ const searchDataDefault = () => {
|
|||
}
|
||||
export default {
|
||||
name: 'NeedSignSysDoc',
|
||||
components: { Pagination, PreviewFile, SignForm, attachmentPreview, attachmentList },
|
||||
components: { Pagination, PreviewFile, SignForm, attachmentPreview },
|
||||
props: {
|
||||
isSigned: {
|
||||
type: Boolean,
|
||||
|
@ -148,12 +143,7 @@ export default {
|
|||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
currentRow: {},
|
||||
SystemDocumentId: null,
|
||||
perview_visible: false,
|
||||
config: {
|
||||
visible: false,
|
||||
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||
width: '800px',
|
||||
},
|
||||
perview_visible: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -168,15 +158,10 @@ export default {
|
|||
...mapGetters(['IsFirstSysDocNeedSign']),
|
||||
},
|
||||
methods: {
|
||||
openAttachment(row, isList = false) {
|
||||
openAttachment(row) {
|
||||
if (!row.AttachmentCount) return false
|
||||
this.SystemDocumentId = row.Id
|
||||
this.currentRow = { ...row }
|
||||
if (!isList) {
|
||||
this.perview_visible = true
|
||||
} else {
|
||||
this.config.visible = true
|
||||
}
|
||||
this.perview_visible = true
|
||||
},
|
||||
// 预览
|
||||
handlePreview(row) {
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
<el-table-column :label="$t('trials:sysDocBeSigned:table:AttachmentCount')" prop="AttachmentCount"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row, true)">{{ scope.row.AttachmentCount
|
||||
}}</el-button>
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('trials:sysDocBeSigned:table:uploadTime')" prop="CreateTime" show-overflow-tooltip
|
||||
|
@ -50,8 +49,8 @@
|
|||
<!-- 预览/签署文件 -->
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="title" :fullscreen="true" append-to-body
|
||||
custom-class="base-dialog-wrapper">
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;font-size: 18px;color:#409EFF"
|
||||
@click.stop="openAttachment(currentRow)" v-if="currentRow.AttachmentCount">{{
|
||||
<span style="position: fixed; left: 16px; top: 45px;cursor: pointer;" @click.stop="openAttachment(currentRow)"
|
||||
v-if="currentRow.AttachmentCount">{{
|
||||
$t('trials:sysDocBeSigned:table:AttachmentCount') }} ({{
|
||||
currentRow.AttachmentCount }})</span>
|
||||
<span v-if="!currentIsConfirm" style="position: fixed;right: 75px;top: 14px;">
|
||||
|
@ -82,10 +81,7 @@
|
|||
<SignForm :is-system-doc="currentRow.IsSystemDoc" :document-id="currentRow.Id" :file-name="fileName"
|
||||
@closeDialog="closeSignDialog" />
|
||||
</el-dialog>
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="currentRow" :SystemDocumentId="SystemDocumentId"
|
||||
:isView="true" @getList="getList" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" :isView="true"
|
||||
v-if="perview_visible" />
|
||||
<attachmentPreview :SystemDocumentId="SystemDocumentId" :visible.sync="perview_visible" v-if="perview_visible" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -94,7 +90,6 @@ import Pagination from '@/components/Pagination'
|
|||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
import SignForm from '@/views/trials/trials-panel/attachments/self-attachment/components/SignForm'
|
||||
import attachmentPreview from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview'
|
||||
import attachmentList from '@/views/dictionary/attachment/components/SignatureTemplate/attachmentList'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
pageIndex: 1,
|
||||
|
@ -105,7 +100,7 @@ const searchDataDefault = () => {
|
|||
}
|
||||
export default {
|
||||
name: 'NeedSignSysDoc',
|
||||
components: { Pagination, PreviewFile, SignForm, attachmentPreview, attachmentList },
|
||||
components: { Pagination, PreviewFile, SignForm, attachmentPreview },
|
||||
props: {
|
||||
isSigned: {
|
||||
type: Boolean,
|
||||
|
@ -131,12 +126,7 @@ export default {
|
|||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
currentRow: {},
|
||||
perview_visible: false,
|
||||
SystemDocumentId: null,
|
||||
config: {
|
||||
visible: false,
|
||||
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||
width: '800px',
|
||||
},
|
||||
SystemDocumentId: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -148,15 +138,10 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
openAttachment(row, isList = false) {
|
||||
openAttachment(row) {
|
||||
if (!row.AttachmentCount) return false
|
||||
this.SystemDocumentId = row.Id
|
||||
this.currentRow = { ...row }
|
||||
if (!isList) {
|
||||
this.perview_visible = true
|
||||
} else {
|
||||
this.config.visible = true
|
||||
}
|
||||
this.perview_visible = true
|
||||
},
|
||||
// 预览
|
||||
handlePreview(row) {
|
||||
|
|
Loading…
Reference in New Issue