Commit d5c1e41f by 史敦盼

概要设计评审情况

1 parent 650a6373
......@@ -4,7 +4,7 @@
* @Autor: pan
* @Date: 2024-03-21 14:29:32
* @LastEditors: pan
* @LastEditTime: 2024-03-21 19:52:10
* @LastEditTime: 2024-03-24 19:05:44
-->
<template>
......@@ -109,7 +109,7 @@ export default {
...this.rowData,
busiId: this.rowData.prjId,
busiIdType: 1,
busiFileName: '概要设计说明',
busiFileName: '概要设计说明',
onlineReviewState: 2,
ideaType: 1,
}
......
......@@ -6,7 +6,13 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<div class="left_container_content flex-1"></div>
<div class="left_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview"
:documentServerUrl="documentServerUrl"
:config="config"
/>
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title flex-b-c">
......@@ -18,7 +24,13 @@
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</div>
<div class="right_container_content flex-1"></div>
<div class="right_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview2"
:documentServerUrl="documentServerUrl"
:config="config"
/>
</div>
</div>
</div>
<div class="bottom_container">
......@@ -55,10 +67,11 @@
</template>
<script>
import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab1',
components: {},
components: { vabOnlyOffice },
data() {
return {
resultContent: '',
......@@ -75,6 +88,44 @@ export default {
],
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
// download: true, //定义文档是可以下载还是只能在线查看或编辑。如果下载权限设置为“假”的下载为...菜单选项将是缺席的文件菜单。默认值为true。
// edit: true, //定义文档是可以编辑还是只能查看。如果编辑权限设置为“true”,则文件菜单将包含编辑文档菜单选项;请注意,如果编辑权限设置为“false”,文档将在查看器中打开,即使模式参数设置为edit,您也无法将其切换到编辑器。默认值为true。
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
},
documentType: 'word',
height: '100%',
width: '100%',
editorConfig: {
//语言:zh-CN简体中文/en英文
lang: 'zh-CN',
//阅读状态 view/edit
mode: 'edit',
customization: {
//是否显示插件
plugins: false,
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
},
},
}
},
created() {
......
......@@ -6,7 +6,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<div class="left_container_content flex-1"></div>
<div class="left_container_content flex-1">
<img v-for="(item, idx) in leftImgs" :key="idx" :src="item" alt="" />
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title flex-b-c">
......@@ -18,7 +20,9 @@
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</div>
<div class="right_container_content flex-1"></div>
<div class="right_container_content flex-1">
<img v-for="(item, idx) in rightImgs" :key="idx" :src="item" alt="" />
</div>
</div>
</div>
<div class="bottom_container">
......@@ -55,7 +59,7 @@
</template>
<script>
import { qViewPrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
import { detailPrelDesInspecte, qViewPrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab2',
components: {},
......@@ -75,6 +79,8 @@ export default {
],
select: '1',
row: {},
leftImgs: [],
rightImgs: [],
}
},
created() {
......@@ -94,6 +100,11 @@ export default {
qViewPrelDesInspecte(params).then((res) => {
if (res.code === 200) {
} else {
if (res.data.length) {
this.leftImgs = res.data.map((v) => {
return `data:image/svg+xml;base64,${v.metaModelSvg}`
})
}
this.$message.error(res.msg)
}
})
......@@ -107,6 +118,11 @@ export default {
}
qViewPrelDesInspecte(params).then((res) => {
if (res.code === 200) {
if (res.data.length) {
this.rightImgs = res.data.map((v) => {
return `data:image/svg+xml;base64,${v.metaModelSvg}`
})
}
} else {
this.$message.error(res.msg)
}
......
......@@ -6,7 +6,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<div class="left_container_content flex-1"></div>
<div class="left_container_content flex-1">
<img v-for="(item, idx) in leftImgs" :key="idx" :src="item" alt="" />
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title flex-b-c">
......@@ -18,7 +20,9 @@
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</div>
<div class="right_container_content flex-1"></div>
<div class="right_container_content flex-1">
<img v-for="(item, idx) in rightImgs" :key="idx" :src="item" alt="" />
</div>
</div>
</div>
<div class="bottom_container">
......@@ -45,7 +49,12 @@
</template>
<script>
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
import {
savePrelDesInspecte,
detailPrelDesInspecte,
qViewPrelDesInspecte,
getqPrelDesInspecteWordTable,
} from '@/api/index.js'
export default {
name: 'tab3',
components: {},
......@@ -55,13 +64,55 @@ export default {
isMeet: null,
select: '1',
row: {},
leftImgs: [],
rightImgs: [],
}
},
created() {
this.row = JSON.parse(this.$route.query.row)
this.getDetail()
this.getLeftQview()
this.getRightQview()
},
methods: {
getLeftQview() {
const params = {
archiBelongId: 1,
archiStage: 2,
reviewEnum: 'KEY_TECHNOLOGY_REVIEW',
prjId: this.row.prjId,
}
qViewPrelDesInspecte(params).then((res) => {
if (res.code === 200) {
if (res.data.length) {
this.leftImgs = res.data.map((v) => {
return `data:image/svg+xml;base64,${v.metaModelSvg}`
})
}
} else {
this.$message.error(res.msg)
}
})
},
getRightQview() {
const params = {
archiBelongId: 1,
archiStage: 3,
reviewEnum: 'KEY_TECHNOLOGY_REVIEW',
prjId: this.row.prjId,
}
getqPrelDesInspecteWordTable(params).then((res) => {
if (res.code === 200) {
if (res.data.length) {
this.rightImgs = res.data.map((v) => {
return `data:image/svg+xml;base64,${v.metaModelSvg}`
})
}
} else {
this.$message.error(res.msg)
}
})
},
getDetail() {
const params = {
reviewEnum: 'KEY_TECHNOLOGY_REVIEW',
......
......@@ -6,7 +6,13 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<div class="left_container_content flex-1"></div>
<div class="left_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview-tab4-1"
:documentServerUrl="documentServerUrl"
:config="config"
/>
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title flex-b-c">
......@@ -18,7 +24,13 @@
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</div>
<div class="right_container_content flex-1"></div>
<div class="right_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview-tab4-2"
:documentServerUrl="documentServerUrl"
:config="config"
/>
</div>
</div>
</div>
<div class="bottom_container">
......@@ -45,16 +57,55 @@
</template>
<script>
import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
export default {
name: 'tab4',
components: {},
components: { vabOnlyOffice },
data() {
return {
resultContent: '',
isMeet: null,
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
// download: true, //定义文档是可以下载还是只能在线查看或编辑。如果下载权限设置为“假”的下载为...菜单选项将是缺席的文件菜单。默认值为true。
// edit: true, //定义文档是可以编辑还是只能查看。如果编辑权限设置为“true”,则文件菜单将包含编辑文档菜单选项;请注意,如果编辑权限设置为“false”,文档将在查看器中打开,即使模式参数设置为edit,您也无法将其切换到编辑器。默认值为true。
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
},
documentType: 'word',
height: '100%',
width: '100%',
editorConfig: {
//语言:zh-CN简体中文/en英文
lang: 'zh-CN',
//阅读状态 view/edit
mode: 'edit',
customization: {
//是否显示插件
plugins: false,
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
},
},
}
},
created() {
......
......@@ -6,7 +6,13 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<div class="left_container_content flex-1"></div>
<div class="left_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview-tab5"
:documentServerUrl="documentServerUrl"
:config="config"
/>
</div>
</div>
<div class="right_container flex-column">
<div class="right_container_title flex-b-c">
......@@ -18,7 +24,9 @@
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</div>
<div class="right_container_content flex-1"></div>
<div class="right_container_content flex-1">
<img v-for="(item, idx) in rightImgs" :key="idx" :src="item" alt="" />
</div>
</div>
</div>
<div class="bottom_container">
......@@ -45,23 +53,88 @@
</template>
<script>
import { savePrelDesInspecte, detailPrelDesInspecte } from '@/api/index.js'
import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import {
savePrelDesInspecte,
detailPrelDesInspecte,
qViewPrelDesInspecte,
} from '@/api/index.js'
export default {
name: 'tab5',
components: {},
components: { vabOnlyOffice },
data() {
return {
resultContent: '',
isMeet: null,
select: '1',
row: {},
documentServerUrl: 'http://43.143.211.42:19231/',
config: {
document: {
fileType: 'docx',
// 给服务端用的唯一id,同一个id就会获取服务器缓存里的文件(有这个key,就会先根据它去缓存里找),这项如果最开始只是先试用,可以先给个空字符串
key: '71df19fbd1',
// 文件名
title: '65f90a662c18a9e9f1878156.docx',
//相关权限
// permissions: {
// copy: true, //定义内容是否可以复制到剪贴板。如果该参数设置为false,则只能在当前文档编辑器中粘贴内容。默认值为true。
// download: true, //定义文档是可以下载还是只能在线查看或编辑。如果下载权限设置为“假”的下载为...菜单选项将是缺席的文件菜单。默认值为true。
// edit: true, //定义文档是可以编辑还是只能查看。如果编辑权限设置为“true”,则文件菜单将包含编辑文档菜单选项;请注意,如果编辑权限设置为“false”,文档将在查看器中打开,即使模式参数设置为edit,您也无法将其切换到编辑器。默认值为true。
// print: true, //定义是否可以打印文档。如果打印权限设置为“false”的打印菜单选项将是缺席的文件菜单。默认值为true
// },
// 所要渲染的文件的绝对路径,这个参数很重要,它传的不是文件的本地地址,而是需要把文件传到项目所依赖的服务器,然后拿到文件在服务器的url地址(这个一般情况需要后端支持)才可以用,这个参数决定了能不能实例化出来onlyoffice对象
url: 'http://43.143.211.42:7006/downloadFile/29',
},
documentType: 'word',
height: '100%',
width: '100%',
editorConfig: {
//语言:zh-CN简体中文/en英文
lang: 'zh-CN',
//阅读状态 view/edit
mode: 'edit',
customization: {
//是否显示插件
plugins: false,
},
user: {
// 当前正在view/edit此文档的用户信息
name: '',
},
// 指定文档存储服务器的绝对路径
callbackUrl: 'http://43.143.211.42:7006/callback?fileId=29',
},
},
rightImgs: [],
}
},
created() {
this.row = JSON.parse(this.$route.query.row)
this.getDetail()
this.getRightQview()
},
methods: {
getRightQview() {
const params = {
archiBelongId: 1,
archiStage: 3,
reviewEnum: 'DATA_DEPTH_REVIEW',
prjId: this.row.prjId,
busiFileName: '概要设计说明书',
}
qViewPrelDesInspecte(params).then((res) => {
if (res.code === 200) {
if (res.data.length) {
this.rightImgs = res.data.map((v) => {
return `data:image/svg+xml;base64,${v.metaModelSvg}`
})
}
} else {
this.$message.error(res.msg)
}
})
},
getDetail() {
const params = {
reviewEnum: 'DATA_DEPTH_REVIEW',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!