Commit 2d3d4002 by 史敦盼

系统信息修改字典, onlyoffice修改

1 parent 9defebef
......@@ -7,28 +7,28 @@
* @Autor: pan
* @Date: 2024-03-21 20:58:31
* @LastEditors: pan
* @LastEditTime: 2024-03-28 17:36:40
* @LastEditTime: 2024-03-29 09:24:54
-->
<template>
<div class="flex-column m-10 w-100 conceptualExamine">
<div class="content flex">
<div
class="left_container m-r-10 flex-column"
:class="{ fullScreen: leftFullScreen }"
:class="{ fullScreen_left: fullScreen }"
>
<div class="left_container_title flex-b-c">
<div>
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<el-tooltip effect="dark" :content="leftScreenTip" placement="top">
<!-- <el-tooltip effect="dark" :content="leftScreenTip" placement="top">
<i
@click="leftFullScreen = !leftFullScreen"
:class="
leftFullScreen ? 'el-icon-circle-close' : 'el-icon-full-screen'
"
></i>
</el-tooltip>
</el-tooltip> -->
</div>
<div
class="left_container_content flex-1"
......@@ -44,7 +44,7 @@
<vab-only-office
id="office-preview"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
<template v-else>
......@@ -61,18 +61,18 @@
</div>
<div
class="right_container flex-column"
:class="{ fullScreen: rightFullScreen }"
:class="{ fullScreen_right: fullScreen }"
>
<div class="right_container_title flex-b-c">
<div>
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-tooltip effect="dark" :content="rightScreenTip" placement="top">
<el-tooltip effect="dark" :content="fullScreenText" placement="top">
<i
@click="rightFullScreen = !rightFullScreen"
@click="fullScreen = !fullScreen"
:class="
rightFullScreen ? 'el-icon-circle-close' : 'el-icon-full-screen'
fullScreen ? 'el-icon-circle-close' : 'el-icon-full-screen'
"
></i>
</el-tooltip>
......@@ -185,8 +185,7 @@ export default {
rightBaseOptions: [],
leftContentTyp: [],
rightContentType: [],
leftFullScreen: false,
rightFullScreen: false,
fullScreen: false,
documentServerUrl: documentServerUrl2,
config: {
......@@ -258,15 +257,8 @@ export default {
}
},
computed: {
leftScreenTip() {
if (this.leftFullScreen) {
return '退出全屏'
} else {
return '全屏'
}
},
rightScreenTip() {
if (this.rightFullScreen) {
fullScreenText() {
if (this.fullScreen) {
return '退出全屏'
} else {
return '全屏'
......@@ -313,6 +305,15 @@ export default {
return '技术规范书'
}
},
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
methods: {
// 获取下拉文档内容
......
......@@ -66,7 +66,12 @@
<script>
import OnlineReviewLeft from '@/views/conceptualViewOrg/OnlineReviewLeft'
import { getReviewNorm, editConceptualViewOrg, exportRiskReport } from '@/api'
import {
getReviewNorm,
editConceptualViewOrg,
exportRiskReport,
queryPrjNeedFile,
} from '@/api'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
export default {
......@@ -132,8 +137,26 @@ export default {
// } else {
// this.getReviewNorm()
// }
this.fnQueryPrjNeedFile()
},
methods: {
// 获取下拉文档内容
fnQueryPrjNeedFile() {
const params = {
busiFileNameList: ['概要设计说明书'],
busiId: this.row.prjId,
busiIdType: 1,
}
queryPrjNeedFile(params).then((res) => {
if (res.code === 200) {
const selectData = res.data
if (selectData.length) {
this.config.document.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/downloadFile/${selectData[0].fileId}`
this.config.editorConfig.url = `${documentServerUrl}${EADC_SHARED_ABILITY}/callback?fileId=${selectData[0].fileId}`
}
}
})
},
getReviewNorm() {
const { needId } = this.row
const params = {
......
......@@ -52,14 +52,22 @@
}
}
.fullScreen {
width: 100% !important;
.fullScreen_left {
// width: 100% !important;
height: 100% !important;
position: fixed !important;
left: 0;
top: 0;
z-index: 999;
}
.fullScreen_right {
height: 100% !important;
position: fixed !important;
right: 0;
top: 0;
z-index: 999;
}
.left_container,
.right_container {
.el-icon-circle-close,
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab1-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -72,6 +72,7 @@ import vabOnlyOffice from '@/components/onlyOffice/index.vue'
import {
saveReviewArchiFollowCheckRightSuggestion,
queryReviewArchiFollowCheckRightSuggestionDetails,
queryPrjNeedFile,
} from '@/api/index.js'
import { documentServerUrl, documentServerUrl2 } from '@/config'
import { EADC_SHARED_ABILITY } from '@/config/micromodule'
......@@ -135,6 +136,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......@@ -142,9 +154,10 @@ export default {
methods: {
// 获取下拉文档内容
fnQueryPrjNeedFile() {
const { prjId } = this.$route.query
const params = {
busiFileNameList: ['概要设计说明书'],
busiId: this.row.prjId,
busiId: prjId,
busiIdType: 1,
}
queryPrjNeedFile(params).then((res) => {
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab2-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -134,6 +134,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab3-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -126,6 +126,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab4-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -126,6 +126,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab5-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -125,6 +125,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......
......@@ -11,7 +11,7 @@
<vab-only-office
id="office-preview-tab6-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -22,9 +22,9 @@
<i class="el-icon-caret-right icon"></i>
<span>评审内容</span>
</div>
<el-select class="select-title" v-model="select">
<!-- <el-select class="select-title" v-model="select">
<el-option label="概要设计说明书.doc" value="1"></el-option>
</el-select>
</el-select> -->
</div>
<div class="right_container_content flex-1">
<div class="office w-100 h-100">
......@@ -135,6 +135,17 @@ export default {
},
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.getDetail()
this.fnQueryPrjNeedFile()
......
......@@ -7,20 +7,20 @@
<i class="el-icon-caret-right icon"></i>
<span>评审标准</span>
</div>
<el-select class="select-title" v-model="leftSelect">
<!-- <el-select class="select-title" v-model="leftSelect">
<el-option
v-for="(item, idx) in leftSelectData"
:label="item.fileName"
:value="item.fileId"
:key="idx"
></el-option>
</el-select>
</el-select> -->
</div>
<div class="left_container_content w-100 h-100 flex-1">
<vab-only-office
id="office-preview"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -147,6 +147,17 @@ export default {
leftSelectData: [],
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.row = JSON.parse(this.$route.query.row)
this.getDetail()
......
......@@ -10,7 +10,7 @@
<vab-only-office
id="office-preview-tab4-1"
:documentServerUrl="documentServerUrl"
:config="config"
:config="readonlyConfig"
/>
</div>
</div>
......@@ -117,6 +117,17 @@ export default {
leftSelectData: [],
}
},
computed: {
readonlyConfig() {
return {
...this.config,
editorConfig: {
...this.config.editorConfig,
mode: 'view',
},
}
},
},
created() {
this.row = JSON.parse(this.$route.query.row)
this.getDetail()
......
......@@ -96,7 +96,7 @@ export default {
//语言:zh-CN简体中文/en英文
lang: 'zh-CN',
//阅读状态 view/edit
mode: 'edit',
mode: 'view',
customization: {
//是否显示插件
plugins: false,
......
......@@ -139,11 +139,11 @@
<span v-else-if="scope.row.buildType == 2">自建</span>
</template>
</el-table-column>
<el-table-column
prop="buildOrg"
label="承建单位"
align="center"
></el-table-column>
<el-table-column prop="buildOrg" label="承建单位" align="center">
<template slot-scope="{ row }">
<span>{{ toBuildOrgName(row.buildOrg) }}</span>
</template>
</el-table-column>
<el-table-column
prop="projectManager"
label="项目经理"
......@@ -362,6 +362,10 @@ export default {
this.getDicts()
},
methods: {
toBuildOrgName(code) {
const obj = this.sysBuildOrgOptions.find((v) => v.value == code) || {}
return obj.label
},
getDicts() {
this.getDictTypeOptions('sys_org', 'sysOrgOptions')
this.getDictTypeOptions('sys_dept', 'sysDeptOptions')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!