|
@@ -49,6 +49,7 @@
|
|
|
<el-dropdown-item command="onlineEdit">编辑文档内容</el-dropdown-item>
|
|
|
<el-dropdown-item command="0">下载</el-dropdown-item>
|
|
|
<el-dropdown-item command="1">预览</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="examineSubmit">提交审核</el-dropdown-item>
|
|
|
<el-dropdown-item command="examineHistory">审核历史</el-dropdown-item>
|
|
|
</template>
|
|
|
<template v-else>
|
|
@@ -90,16 +91,23 @@
|
|
|
<el-button type="primary" @click="submit">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 审核历史 -->
|
|
|
<examineHistoryDialog ref="examineHistoryDialog"></examineHistoryDialog>
|
|
|
+
|
|
|
+ <!-- 提交审核 -->
|
|
|
+ <examineSubmitDialog ref="examineSubmitDialog"></examineSubmitDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { downLoad2 } from "@/utils"
|
|
|
import examineHistoryDialog from './examineHistoryDialog.vue'
|
|
|
+
|
|
|
+import examineSubmitDialog from '@/views/components/onlyOffice/addNewFile.vue'
|
|
|
export default {
|
|
|
components:{
|
|
|
- examineHistoryDialog
|
|
|
+ examineHistoryDialog,
|
|
|
+ examineSubmitDialog
|
|
|
},
|
|
|
props: ['projectId','queryApi','deleteApi'],
|
|
|
data() {
|
|
@@ -363,10 +371,32 @@ export default {
|
|
|
case 'examineHistory'://审核历史
|
|
|
this.$refs.examineHistoryDialog.open(row.fileGuid)
|
|
|
break;
|
|
|
+ case 'examineSubmit'://提交审核
|
|
|
+ this.examineSubmit(row)
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
+ examineSubmit(row){
|
|
|
+ var title = row.referencesName
|
|
|
+ var taskName = ''
|
|
|
+ if(title.endsWith('.'+row.fileType)){
|
|
|
+ title = title.slice(0, -(row.fileType.length+1))
|
|
|
+ }
|
|
|
+ taskName = title + '-' + row.createName + '-' + '文件审核'
|
|
|
+ title = title + '-' + row.createName + '.' + row.fileType
|
|
|
+ var form = {
|
|
|
+ referencesName:title,
|
|
|
+ guid:row.fileGuid,
|
|
|
+ projectId:this.projectId,
|
|
|
+ fileType:row.fileType
|
|
|
+ }
|
|
|
+ var taskForm = {
|
|
|
+ name:taskName
|
|
|
+ }
|
|
|
+ this.$refs.examineSubmitDialog.open(form,taskForm)
|
|
|
+ },
|
|
|
//在线编辑文档
|
|
|
onlineEdit(row){
|
|
|
let router = this.$router.resolve({
|