修改onlyoffice传参
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -131,10 +131,38 @@
|
||||
clearable
|
||||
></el-input>
|
||||
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
|
||||
<div style="width: 80%;margin-top: 13px">
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass">
|
||||
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||
<div style="width: 80%;margin-top: 13px" v-if="isTrue">
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
||||
style="color: #409eff;cursor:pointer"
|
||||
class="fileClass fileClassName">
|
||||
<span style="width: 80%;"
|
||||
v-if="index == 0"
|
||||
@click="handleFilePreviewOne(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span v-else @click="handleFilePreview(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="width: 20%;margin-left: 15px;"
|
||||
v-if="item.id !== '' && index == 0">
|
||||
<el-button type="primary" size="mini"
|
||||
plain icon="el-icon-edit"
|
||||
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
||||
style="color: #409eff;cursor:pointer;"
|
||||
class="fileClass">
|
||||
<span style="" @click="handleFilePreview(item,'preview')"
|
||||
:title="item.name">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
@@ -702,6 +730,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
isTrue: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
},
|
||||
filters: {
|
||||
ellipsis (value) {
|
||||
@@ -905,6 +937,22 @@ export default {
|
||||
attId = file.id
|
||||
}else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
if (file.name == this.form.standName) {
|
||||
let fileName = ""
|
||||
let fileNam2 = ""
|
||||
if (this.form.standName && this.form.standName !== '') {
|
||||
fileName = this.form.standName + '-企业标准.docx'
|
||||
fileNam2 = this.form.standName + '-企业标准'
|
||||
} else {
|
||||
fileName = '企业标准.docx'
|
||||
fileNam2 = '企业标准'
|
||||
}
|
||||
let form = JSON.parse(JSON.stringify(this.form))
|
||||
form.standCode = ''
|
||||
form.issueDate = ''
|
||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
||||
return
|
||||
}
|
||||
if (type === 'down') {
|
||||
if (attId) {
|
||||
@@ -916,6 +964,31 @@ export default {
|
||||
this.$preview(attId)
|
||||
}
|
||||
},
|
||||
handleFilePreviewOne(file, type) {
|
||||
let id = ""
|
||||
let fileName = ""
|
||||
let fileNam2 = ""
|
||||
if (this.form.standName && this.form.standName !== '') {
|
||||
fileName = this.form.standName + '-企业标准.docx'
|
||||
fileNam2 = this.form.standName + '-企业标准'
|
||||
} else {
|
||||
fileName = '企业标准.docx'
|
||||
fileNam2 = '企业标准'
|
||||
}
|
||||
if (file && file.id) {
|
||||
id = file.id
|
||||
} else {
|
||||
id = file.response.data.id
|
||||
}
|
||||
if (this.form.issueTime){
|
||||
this.form.issueTime = this.form.issueTime.slice(0,10)
|
||||
}
|
||||
if (type === 'preview') {
|
||||
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
|
||||
} else {
|
||||
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
|
||||
}
|
||||
},
|
||||
downloadFile (data) {
|
||||
//文件id中出现了','字符,去除掉
|
||||
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id
|
||||
@@ -1010,6 +1083,20 @@ export default {
|
||||
},
|
||||
deep: true //对象的深度验证
|
||||
},
|
||||
'form.standName': {
|
||||
handler: function (val) {
|
||||
console.log(val);
|
||||
if (val && val !== '') {
|
||||
if (this.FBGBUSSFileList.length > 0) {
|
||||
this.FBGBUSSFileList[0].name = val
|
||||
}
|
||||
} else {
|
||||
if (this.FBGBUSSFileList.length > 0) {
|
||||
this.FBGBUSSFileList[0].name = '企业标准'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2131,8 +2131,6 @@ export default {
|
||||
}, res => {
|
||||
this.form.standEnName = res.data.standEnName
|
||||
this.form.putTime = res.data.putTime
|
||||
this.form.issueTime = res.data.issueTime
|
||||
this.form.standCode = res.data.standCode
|
||||
this.form.QCDW = res.data.attrInfoMap.QCDW
|
||||
this.form.WJSCRYBUSSName = res.data.attrInfoMap.WJSCRYBUSS
|
||||
this.form.NYLXCLASS = res.data.attrInfoMap.NYLXCLASS.split(',')
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:isTrue="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:isTrue="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<div style="flex: auto;" v-show="active === '1'">
|
||||
<formList
|
||||
:form = "form"
|
||||
:isTrue="true"
|
||||
:FBGBUSSFileList = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileList = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileList = "BZSMBUSSFileList"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -145,6 +145,7 @@
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:is-true="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:isTrue="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
|
||||
|
||||
@@ -150,6 +150,7 @@
|
||||
<formEditList
|
||||
:key = "formKey"
|
||||
:formSub = "form"
|
||||
:is-true="true"
|
||||
:FBGBUSSFileListSub = "FBGBUSSFileList"
|
||||
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
|
||||
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
|
||||
|
||||
Reference in New Issue
Block a user