[update] 企标制修订在线编辑
This commit is contained in:
@@ -61,19 +61,22 @@
|
||||
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
||||
<main-drafter-collect-upload-minute-base-info v-if="currentNode === 3" ref="baseInfoRef"></main-drafter-collect-upload-minute-base-info>
|
||||
<!-- 节点4、标准化审核 -->
|
||||
<standardization-audit-base-info v-if="currentNode === 4" ref="baseInfoRef" @standardizationAuditIsMeeting="standardizationAuditIsMeeting"></standardization-audit-base-info>
|
||||
<standardization-audit-base-info
|
||||
v-if="currentNode === 4" ref="baseInfoRef"
|
||||
@standardizationAuditIsMeeting="standardizationAuditIsMeeting"
|
||||
@onlineEditView="onlineEditView"></standardization-audit-base-info>
|
||||
<!-- 节点5、评分人打分 -->
|
||||
<scorer-mark-base-info v-if="currentNode === 5" ref="baseInfoRef"></scorer-mark-base-info>
|
||||
<scorer-mark-base-info v-if="currentNode === 5" ref="baseInfoRef" @onlineEditView="onlineEditView"></scorer-mark-base-info>
|
||||
<!-- 节点6、标准化确认是否开启征求意见 -->
|
||||
<confirm-whether-comment-base-info v-if="currentNode === 6" ref="baseInfoRef"></confirm-whether-comment-base-info>
|
||||
<confirm-whether-comment-base-info v-if="currentNode === 6" ref="baseInfoRef" @onlineEditView="onlineEditView"></confirm-whether-comment-base-info>
|
||||
<!-- 节点7、部所联络人下发 -->
|
||||
<depart-liaison-issue-base-info v-if="currentNode === 7" ref="baseInfoRef"></depart-liaison-issue-base-info>
|
||||
<depart-liaison-issue-base-info v-if="currentNode === 7" ref="baseInfoRef" @onlineEditView="onlineEditView"></depart-liaison-issue-base-info>
|
||||
<!-- 节点8、征求意见对象填写意见 -->
|
||||
<comment-object-enter-base-info v-if="currentNode === 8" ref="baseInfoRef"></comment-object-enter-base-info>
|
||||
<comment-object-enter-base-info v-if="currentNode === 8" ref="baseInfoRef" @onlineEditView="onlineEditView"></comment-object-enter-base-info>
|
||||
<!-- 节点9、部所联络人汇总数据 -->
|
||||
<depart-liaison-collect-base-info v-if="currentNode === 9" ref="baseInfoRef"></depart-liaison-collect-base-info>
|
||||
<depart-liaison-collect-base-info v-if="currentNode === 9" ref="baseInfoRef" @onlineEditView="onlineEditView"></depart-liaison-collect-base-info>
|
||||
<!-- 节点10、部所联络人主管级领导审批 -->
|
||||
<depart-liaison-leader-approve-base-info v-if="currentNode === 10" ref="baseInfoRef"></depart-liaison-leader-approve-base-info>
|
||||
<depart-liaison-leader-approve-base-info v-if="currentNode === 10" ref="baseInfoRef" @onlineEditView="onlineEditView"></depart-liaison-leader-approve-base-info>
|
||||
<!-- 节点11、主起草人汇总 -->
|
||||
<main-drafter-collect-base-info v-if="currentNode === 11" ref="baseInfoRef"></main-drafter-collect-base-info>
|
||||
<!-- 节点12、主起草人上传会议纪要 -->
|
||||
@@ -84,7 +87,7 @@
|
||||
<!-- 节点16、相关部门领导会签 -->
|
||||
<!-- 节点17、总工程师审批 -->
|
||||
<!-- 只有标准文本 -->
|
||||
<other-drafter-proofread-base-info v-if="[13, 14, 15, 16, 17].includes(currentNode)" ref="baseInfoRef"></other-drafter-proofread-base-info>
|
||||
<other-drafter-proofread-base-info v-if="[13, 14, 15, 16, 17].includes(currentNode)" ref="baseInfoRef" @onlineEditView="onlineEditView"></other-drafter-proofread-base-info>
|
||||
<!-- 节点18、主起草人发布 -->
|
||||
<main-drafter-publish-base-info v-if="currentNode === 18" ref="baseInfoRef"></main-drafter-publish-base-info>
|
||||
|
||||
@@ -182,6 +185,8 @@ import {
|
||||
enStandardEditTurnTo
|
||||
} from '@/api/workCenter'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { queryFileInfoByEditId } from '../../../api/workCenter'
|
||||
import { Base64 } from 'js-base64'
|
||||
|
||||
export default {
|
||||
name: 'EnterpriseStandardRevisionFlow',
|
||||
@@ -364,7 +369,8 @@ export default {
|
||||
},
|
||||
flowInitType: 'newProcess', // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess)
|
||||
rejectBtnDisabled: false, // 驳回按钮是否置灰
|
||||
agreeBtnDisabled: false // 同意按钮是否置灰
|
||||
agreeBtnDisabled: false, // 同意按钮是否置灰
|
||||
documentUrl: window._CONFIG.documentUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -544,6 +550,8 @@ export default {
|
||||
param.data.otherDraftUserVOS = data.otherDraftUserVOS
|
||||
// 企标计划id
|
||||
param.data.espId = data.formInline.espId
|
||||
// 在线编辑的文件id
|
||||
param.data.onEditFile = data.onEditFile
|
||||
// data的id
|
||||
param.data.id = this.model.data ? this.model.data.id : ''
|
||||
let func
|
||||
@@ -694,6 +702,18 @@ export default {
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView (fileId) {
|
||||
queryFileInfoByEditId({ id: fileId }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.editFilePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.editFilePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-3
@@ -82,7 +82,8 @@ export default {
|
||||
}
|
||||
},
|
||||
index: undefined, // 编辑的表格的下标
|
||||
iframeSrc: '' // 左侧预览的路径
|
||||
iframeSrc: '', // 左侧预览的路径
|
||||
documentUrl: window._CONFIG.documentUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -118,9 +119,9 @@ export default {
|
||||
})
|
||||
},
|
||||
handlePreview (file) {
|
||||
const filePaths = file.filePath.split('/')
|
||||
const filePaths = file.editFilePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.editFilePath + '&fullfilename=' + fileName))}`
|
||||
this.iframeSrc = url
|
||||
},
|
||||
close () {
|
||||
|
||||
@@ -121,7 +121,8 @@ export default {
|
||||
},
|
||||
index: undefined, // 编辑的表格的下标
|
||||
iframeSrc: '', // 左侧预览的路径
|
||||
isAdd: false // 是否是新增,新增才有提交并新增按钮
|
||||
isAdd: false, // 是否是新增,新增才有提交并新增按钮
|
||||
documentUrl: window._CONFIG.documentUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -158,9 +159,9 @@ export default {
|
||||
})
|
||||
},
|
||||
handlePreview (file) {
|
||||
const filePaths = file.filePath.split('/')
|
||||
const filePaths = file.editFilePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.editFilePath + '&fullfilename=' + fileName))}`
|
||||
this.iframeSrc = url
|
||||
},
|
||||
close () {
|
||||
|
||||
+1
-9
@@ -210,15 +210,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-9
@@ -130,15 +130,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-9
@@ -238,15 +238,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-9
@@ -149,15 +149,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-9
@@ -219,15 +219,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-9
@@ -50,15 +50,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+14
-1
@@ -219,6 +219,19 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style scoped lang="less">
|
||||
|
||||
.online-edit-wrapper {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.ant-btn {
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -398,15 +398,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-9
@@ -120,6 +120,7 @@ import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
|
||||
export default {
|
||||
name: 'StandardizationAuditBaseInfo',
|
||||
@@ -168,6 +169,7 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
documentUrl: window._CONFIG.documentUrl,
|
||||
onEditFile: '' // 在线编辑的文件id
|
||||
}
|
||||
},
|
||||
@@ -221,15 +223,7 @@ export default {
|
||||
},
|
||||
// 在线编辑的查看
|
||||
onlineEditView () {
|
||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
||||
if (res.success) {
|
||||
const file = res.result
|
||||
const filePaths = file.filePath.split('/')
|
||||
const fileName = filePaths[filePaths.length - 1]
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(this.documentUrl + file.filePath + '&fullfilename=' + fileName))}`
|
||||
window.open(url, '_blank')
|
||||
}
|
||||
})
|
||||
this.$emit('onlineEditView', this.onEditFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user