Commit 2d3d4002 by 史敦盼

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

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