[update] 企标制修订在线编辑
This commit is contained in:
@@ -61,19 +61,22 @@
|
|||||||
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
<!-- 节点3、主起草人汇总上传会议纪要 -->
|
||||||
<main-drafter-collect-upload-minute-base-info v-if="currentNode === 3" ref="baseInfoRef"></main-drafter-collect-upload-minute-base-info>
|
<main-drafter-collect-upload-minute-base-info v-if="currentNode === 3" ref="baseInfoRef"></main-drafter-collect-upload-minute-base-info>
|
||||||
<!-- 节点4、标准化审核 -->
|
<!-- 节点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、评分人打分 -->
|
<!-- 节点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、标准化确认是否开启征求意见 -->
|
<!-- 节点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、部所联络人下发 -->
|
<!-- 节点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、征求意见对象填写意见 -->
|
<!-- 节点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、部所联络人汇总数据 -->
|
<!-- 节点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、部所联络人主管级领导审批 -->
|
<!-- 节点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、主起草人汇总 -->
|
<!-- 节点11、主起草人汇总 -->
|
||||||
<main-drafter-collect-base-info v-if="currentNode === 11" ref="baseInfoRef"></main-drafter-collect-base-info>
|
<main-drafter-collect-base-info v-if="currentNode === 11" ref="baseInfoRef"></main-drafter-collect-base-info>
|
||||||
<!-- 节点12、主起草人上传会议纪要 -->
|
<!-- 节点12、主起草人上传会议纪要 -->
|
||||||
@@ -84,7 +87,7 @@
|
|||||||
<!-- 节点16、相关部门领导会签 -->
|
<!-- 节点16、相关部门领导会签 -->
|
||||||
<!-- 节点17、总工程师审批 -->
|
<!-- 节点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、主起草人发布 -->
|
<!-- 节点18、主起草人发布 -->
|
||||||
<main-drafter-publish-base-info v-if="currentNode === 18" ref="baseInfoRef"></main-drafter-publish-base-info>
|
<main-drafter-publish-base-info v-if="currentNode === 18" ref="baseInfoRef"></main-drafter-publish-base-info>
|
||||||
|
|
||||||
@@ -182,6 +185,8 @@ import {
|
|||||||
enStandardEditTurnTo
|
enStandardEditTurnTo
|
||||||
} from '@/api/workCenter'
|
} from '@/api/workCenter'
|
||||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||||
|
import { queryFileInfoByEditId } from '../../../api/workCenter'
|
||||||
|
import { Base64 } from 'js-base64'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EnterpriseStandardRevisionFlow',
|
name: 'EnterpriseStandardRevisionFlow',
|
||||||
@@ -364,7 +369,8 @@ export default {
|
|||||||
},
|
},
|
||||||
flowInitType: 'newProcess', // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess)
|
flowInitType: 'newProcess', // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess)
|
||||||
rejectBtnDisabled: false, // 驳回按钮是否置灰
|
rejectBtnDisabled: false, // 驳回按钮是否置灰
|
||||||
agreeBtnDisabled: false // 同意按钮是否置灰
|
agreeBtnDisabled: false, // 同意按钮是否置灰
|
||||||
|
documentUrl: window._CONFIG.documentUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -544,6 +550,8 @@ export default {
|
|||||||
param.data.otherDraftUserVOS = data.otherDraftUserVOS
|
param.data.otherDraftUserVOS = data.otherDraftUserVOS
|
||||||
// 企标计划id
|
// 企标计划id
|
||||||
param.data.espId = data.formInline.espId
|
param.data.espId = data.formInline.espId
|
||||||
|
// 在线编辑的文件id
|
||||||
|
param.data.onEditFile = data.onEditFile
|
||||||
// data的id
|
// data的id
|
||||||
param.data.id = this.model.data ? this.model.data.id : ''
|
param.data.id = this.model.data ? this.model.data.id : ''
|
||||||
let func
|
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, // 编辑的表格的下标
|
index: undefined, // 编辑的表格的下标
|
||||||
iframeSrc: '' // 左侧预览的路径
|
iframeSrc: '', // 左侧预览的路径
|
||||||
|
documentUrl: window._CONFIG.documentUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -118,9 +119,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handlePreview (file) {
|
handlePreview (file) {
|
||||||
const filePaths = file.filePath.split('/')
|
const filePaths = file.editFilePath.split('/')
|
||||||
const fileName = filePaths[filePaths.length - 1]
|
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
|
this.iframeSrc = url
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ export default {
|
|||||||
},
|
},
|
||||||
index: undefined, // 编辑的表格的下标
|
index: undefined, // 编辑的表格的下标
|
||||||
iframeSrc: '', // 左侧预览的路径
|
iframeSrc: '', // 左侧预览的路径
|
||||||
isAdd: false // 是否是新增,新增才有提交并新增按钮
|
isAdd: false, // 是否是新增,新增才有提交并新增按钮
|
||||||
|
documentUrl: window._CONFIG.documentUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -158,9 +159,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handlePreview (file) {
|
handlePreview (file) {
|
||||||
const filePaths = file.filePath.split('/')
|
const filePaths = file.editFilePath.split('/')
|
||||||
const fileName = filePaths[filePaths.length - 1]
|
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
|
this.iframeSrc = url
|
||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
|
|||||||
+1
-9
@@ -210,15 +210,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -130,15 +130,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -238,15 +238,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -149,15 +149,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -219,15 +219,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-9
@@ -50,15 +50,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-1
@@ -219,6 +219,19 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</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>
|
</style>
|
||||||
|
|||||||
@@ -398,15 +398,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-9
@@ -120,6 +120,7 @@ import { kkFilePreview } from '@/utils/kkFilePreview'
|
|||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
||||||
import { Base64 } from 'js-base64'
|
import { Base64 } from 'js-base64'
|
||||||
|
import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'StandardizationAuditBaseInfo',
|
name: 'StandardizationAuditBaseInfo',
|
||||||
@@ -168,6 +169,7 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
documentUrl: window._CONFIG.documentUrl,
|
||||||
onEditFile: '' // 在线编辑的文件id
|
onEditFile: '' // 在线编辑的文件id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -221,15 +223,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 在线编辑的查看
|
// 在线编辑的查看
|
||||||
onlineEditView () {
|
onlineEditView () {
|
||||||
queryFileInfoByEditId({ id: this.onEditFile }).then(res => {
|
this.$emit('onlineEditView', this.onEditFile)
|
||||||
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')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user