diff --git a/src/common/preview/index.js b/src/common/preview/index.js index 626d94777..4176911a2 100644 --- a/src/common/preview/index.js +++ b/src/common/preview/index.js @@ -5,7 +5,14 @@ import { onlyOfficeUrl,kkFileViewUrl } from '@/sysConfig' import { getBusStandFileByAttId } from 'api/process' let Base64 = require('js-base64').Base64; import store from '@/store' +import { Loading } from "element-ui"; + export default attId => { + const loading = Loading.service({ + lock: true, + text: '正在加载文件', + spinner: 'el-icon-loading', + }) getBusStandFileByAttId({ attId }).then(res => { @@ -22,6 +29,7 @@ export default attId => { } } - }).catch(e => { + }).finally(() => { + loading.close() }) } diff --git a/src/pages/config/pages/roleManage/index.vue b/src/pages/config/pages/roleManage/index.vue index 21fad7dce..bfa696419 100644 --- a/src/pages/config/pages/roleManage/index.vue +++ b/src/pages/config/pages/roleManage/index.vue @@ -362,7 +362,7 @@ tooltip-effect="dark" style="width: 100%;" border - height="100%" + height="93%" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
-
+
+ + + 数据加载中……
+
- +
+ + + + + +