修改onlyoffice传参

This commit is contained in:
范强强
2023-02-15 10:23:29 +08:00
parent 52f10c3575
commit cd1125e349
3 changed files with 3665 additions and 3388 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export default (id,nodeName,userId,userName,query) => {
window.open(onlyOfficeUrl+'/editor?fileId='+editFileInfo.id+'&pid='+editFileInfo.pId+
'&taskIds='+editFileInfo.taskId+'&editType='+editFileInfo.editType+'&oldFileName=' + showName +
'&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl +
'&key=' + editFileInfo.id +'&filePath='+editFileInfo.filePath+ '&fileName='+editFileInfo.fileName+
'&key=' + editFileInfo.id+nowTime +'&filePath='+editFileInfo.filePath+ '&fileName='+editFileInfo.fileName+
'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName+'&standName='+query.standName+
'&standEnName='+query.standEnName+'&standCode='+query.standCode+'&putTime='+query.putTime+
'&issueTime='+query.issueTime+'&dtqbbhbuss='+query.DTQBBHBUSS)
File diff suppressed because it is too large Load Diff
@@ -156,11 +156,29 @@
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
<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)">
{{ 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>
</div>
</div>
<div style="width: 20%;">
<el-button :disabled="disabledXX"
disabled
<!-- :disabled="disabledXX"-->
<!-- disabled-->
<el-button
type="primary"
class="common-button-primary"
size="mini"
@@ -1723,6 +1741,19 @@ export default {
filterText(val) {
this.$refs.tree.filter(val);
},
'form.standName': {
handler: function (val) {
if (val && val !== '') {
this.form.FBGBUSSName = val
this.FBGBUSSFileList = []
this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, val);
} else {
this.form.FBGBUSSName = '企业标准'
this.FBGBUSSFileList = []
this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, '企业标准');
}
}
},
},
methods: {
getMap1(item){
@@ -2098,9 +2129,10 @@ export default {
}, {
_this: this
}, res => {
console.log(res.data);
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(',')
@@ -3031,6 +3063,28 @@ export default {
}
return data
},
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 (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)
}
},
changeRestTree(val) {
let arr = [];
if (val.length !== 0) {
@@ -3239,6 +3293,22 @@ export default {
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度
})
if (this.$route.query.bpnId === undefined && this.$route.query.taskIds === undefined) {
this.$http.get('/lawss/activiti/saveEditFile', {
model: 'model_qb'
}, {
_this: this
}, res => {
if (res) {
this.form.FBGBUSS = res.id
this.form.FBGBUSSName = '企业标准'
this.FBGBUSSFileList = this.assemble(res.id, '企业标准');
}
})
} else {
this.FBGBUSSFileList = this.assemble(this.form.FBGBUSS, this.form.FBGBUSSName);
}
}
}
@@ -3249,6 +3319,9 @@ export default {
/deep/ .fileClass{
line-height: 22px !important;
}
.fileClassName{
margin-bottom: 10px;
}
/deep/ #active2 .el-form-item__content{
margin-left: 0px !important;
}