[update] 修改bug80751,企标库的左侧预览
This commit is contained in:
@@ -85,15 +85,15 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
add (publishOriginal) {
|
||||
this.getFileInfo(publishOriginal).then(res => {
|
||||
add (fileId) {
|
||||
this.getFileInfo(fileId).then(res => {
|
||||
this.handlePreview(res)
|
||||
})
|
||||
this.visible = true
|
||||
this.form.resetFields()
|
||||
},
|
||||
edit (publishOriginal, record, index) {
|
||||
this.getFileInfo(publishOriginal).then(res => {
|
||||
edit (fileId, record, index) {
|
||||
this.getFileInfo(fileId).then(res => {
|
||||
this.handlePreview(res)
|
||||
})
|
||||
this.visible = true
|
||||
@@ -164,6 +164,12 @@ export default {
|
||||
width: 60%;
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
.left-spin {
|
||||
height: 100%;
|
||||
}
|
||||
/deep/ .ant-spin-container {
|
||||
height: 100%;
|
||||
}
|
||||
iframe {
|
||||
height: calc(100% - 20px) !important;
|
||||
}
|
||||
|
||||
@@ -149,22 +149,30 @@ export default {
|
||||
// 稽查内容的添加
|
||||
handleAdd () {
|
||||
const value = this.$refs.addForm.formInline
|
||||
let publishOriginal = ''
|
||||
if (value.publish_of_original) {
|
||||
publishOriginal = value.publish_of_original
|
||||
// 过程稿件id 发布稿>修改单>报批稿>送审稿>征求意见稿>草稿
|
||||
const fieldArr = ['publish_of_original', 'modification_list', 'draft_for_review', 'draft_for_comment', 'draft']
|
||||
let fileId = ''
|
||||
for (const item of fieldArr) {
|
||||
if (!fileId) {
|
||||
fileId = value[item] ? value[item].split(',')[0] : ''
|
||||
}
|
||||
}
|
||||
this.$refs.checkContentModal.title = this.$t('newlyAdded')
|
||||
this.$refs.checkContentModal.add(publishOriginal)
|
||||
this.$refs.checkContentModal.add(fileId)
|
||||
},
|
||||
// 稽查内容的编辑
|
||||
handleEdit (record, index) {
|
||||
const value = this.$refs.addForm.formInline
|
||||
let publishOriginal = ''
|
||||
if (value.publish_of_original) {
|
||||
publishOriginal = value.publish_of_original
|
||||
// 过程稿件id 发布稿>修改单>报批稿>送审稿>征求意见稿>草稿
|
||||
const fieldArr = ['publish_of_original', 'modification_list', 'draft_for_review', 'draft_for_comment', 'draft']
|
||||
let fileId = ''
|
||||
for (const item of fieldArr) {
|
||||
if (!fileId) {
|
||||
fileId = value[item] ? value[item].split(',')[0] : ''
|
||||
}
|
||||
}
|
||||
this.$refs.checkContentModal.title = this.$t('edit')
|
||||
this.$refs.checkContentModal.edit(publishOriginal, record, index)
|
||||
this.$refs.checkContentModal.edit(fileId, record, index)
|
||||
},
|
||||
// 稽查内容的删除
|
||||
handleDelete (index) {
|
||||
|
||||
Reference in New Issue
Block a user