diff --git a/src/views/common/FileOrImageDisplay.vue b/src/views/common/FileOrImageDisplay.vue
index 221341d..5d6f613 100644
--- a/src/views/common/FileOrImageDisplay.vue
+++ b/src/views/common/FileOrImageDisplay.vue
@@ -11,8 +11,8 @@
-
+
图片加载失败
@@ -26,13 +26,34 @@
--
+
+
+
+
@@ -220,4 +253,21 @@ export default {
}
}
}
+
+.preview-dialog ::v-deep .el-dialog {
+ height: 88vh;
+ display: flex;
+ flex-direction: column;
+}
+
+.preview-dialog ::v-deep .el-dialog__body {
+ flex: 1;
+ padding: 0;
+ height: 0;
+ /* 重要:让flex布局生效 */
+}
+
+.preview-dialog ::v-deep .onlyoffice-container {
+ height: 100%;
+}
\ No newline at end of file
diff --git a/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue b/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue
index eba9fd7..7b321e2 100644
--- a/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue
+++ b/src/views/enterpriseLibrary/personnel/components/child/BasicInfoDetail.vue
@@ -184,7 +184,8 @@ export default {
name: item.fileName,
filePath: item.filePath,
lsFilePath: item.lsFilePath,
- fileType: item.fileType
+ fileType: item.fileType,
+ id: item.sourceId
}));
}
}
diff --git a/src/views/enterpriseLibrary/technical/components/RightTable.vue b/src/views/enterpriseLibrary/technical/components/RightTable.vue
index a0918eb..287e96e 100644
--- a/src/views/enterpriseLibrary/technical/components/RightTable.vue
+++ b/src/views/enterpriseLibrary/technical/components/RightTable.vue
@@ -6,6 +6,9 @@
数据列表
+
+ {{ data.technicalName }}
+
新增
@@ -28,6 +31,11 @@
+
+
+
@@ -36,11 +44,13 @@ import TableModel from '@/components/TableModel2'
import { columnsList, formLabel } from './config'
import { listAPI, delDataAPI } from '@/api/enterpriseLibrary/technical/technical'
import { encryptWithSM4 } from '@/utils/sm'
+import OnlyOfficeViewer from '@/views/common/OnlyOfficeViewer'
export default {
name: 'RightTableTechnical',
components: {
TableModel,
+ OnlyOfficeViewer
},
dicts: ['construction_nature', 'structural_form', 'basic_form'],
props: {
@@ -58,6 +68,12 @@ export default {
formLabel,
columnsList,
listAPI,
+ dialogVisible: false,
+ documentUrl: '',
+ documentTitle: '',
+ documentKey: '',
+ mode: 'view',
+ type: 'desktop',
}
},
watch: {
@@ -138,6 +154,25 @@ export default {
handleQuery() {
this.$refs.technicalTableRef.getTableList()
},
+ /** 查看文件 */
+ viewFile(row) {
+ console.log(row);
+ this.documentTitle = row.technicalName
+ this.documentKey = row.resourceFileVoList?.[0]?.sourceId + ''
+ this.dialogVisible = true
+ },
+ handleDocumentReady() {
+ console.log('文档已准备就绪')
+ },
+ handleAppReady() {
+ console.log('应用已准备就绪')
+ },
+ handleError(error) {
+ console.log('错误:', error)
+ },
+ handleInitialized() {
+ console.log('初始化完成')
+ },
/** 删除操作 */
handleDelete(row) {
this.$confirm(`确定要删除方案类型"${raw.technicalSolutionName}"吗?删除后将无法恢复!`, '操作提示', {
@@ -207,4 +242,21 @@ export default {
margin-right: 0;
}
}
+
+.preview-dialog ::v-deep .el-dialog {
+ height: 88vh;
+ display: flex;
+ flex-direction: column;
+}
+
+.preview-dialog ::v-deep .el-dialog__body {
+ flex: 1;
+ padding: 0;
+ height: 0;
+ /* 重要:让flex布局生效 */
+}
+
+.preview-dialog ::v-deep .onlyoffice-container {
+ height: 100%;
+}
diff --git a/src/views/enterpriseLibrary/technical/components/config.js b/src/views/enterpriseLibrary/technical/components/config.js
index f3b16b3..49104d7 100644
--- a/src/views/enterpriseLibrary/technical/components/config.js
+++ b/src/views/enterpriseLibrary/technical/components/config.js
@@ -33,7 +33,7 @@ export const formLabel = [
]
export const columnsList = [
- { t_props: 'technicalName',t_width: 350, t_label: '方案名称' },
+ { t_slot: 'technicalName',t_width: 350, t_label: '方案名称' },
{ t_props: 'natureConstruction', t_label: '建设性质' },
{ t_props: 'structuralForm', t_label: '结构形式' },
{ t_props: 'basicForm', t_label: '基础形式' },