|
@@ -186,6 +186,7 @@ import Template from '@/business/platform/form/form-print/template.vue'
|
|
|
import curdPost from '@/business/platform/form/utils/custom/joinCURD.js'
|
|
import curdPost from '@/business/platform/form/utils/custom/joinCURD.js'
|
|
|
import FileDialog from './fileDialog.vue'
|
|
import FileDialog from './fileDialog.vue'
|
|
|
import IbpsAttachment from '@/business/platform/file/attachment/selector'
|
|
import IbpsAttachment from '@/business/platform/file/attachment/selector'
|
|
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
// import * as selectbox from 'bpmn-js-properties-panel/lib/factory/SelectEntryFactory'
|
|
// import * as selectbox from 'bpmn-js-properties-panel/lib/factory/SelectEntryFactory'
|
|
|
// import func from 'vue-editor-bridge'
|
|
// import func from 'vue-editor-bridge'
|
|
|
export default {
|
|
export default {
|
|
@@ -346,8 +347,9 @@ export default {
|
|
|
// 本人修改
|
|
// 本人修改
|
|
|
this.removeMouseMoveListener()
|
|
this.removeMouseMoveListener()
|
|
|
},
|
|
},
|
|
|
- mounted() {
|
|
|
|
|
|
|
+ async mounted() {
|
|
|
this.height = this.getDialogHeightHeight()
|
|
this.height = this.getDialogHeightHeight()
|
|
|
|
|
+ const { fileDownRights } = (await getSetting('system')) || {}
|
|
|
// 页面切换时改变计时状态
|
|
// 页面切换时改变计时状态
|
|
|
document.addEventListener('visibilitychange', this.handlePageChange)
|
|
document.addEventListener('visibilitychange', this.handlePageChange)
|
|
|
this.checkDialogBody()
|
|
this.checkDialogBody()
|
|
@@ -355,10 +357,17 @@ export default {
|
|
|
const curRole = this.role.map((i) => i.alias)
|
|
const curRole = this.role.map((i) => i.alias)
|
|
|
const isPower = curRole.some((item) => roleKey.includes(item))
|
|
const isPower = curRole.some((item) => roleKey.includes(item))
|
|
|
this.deleteShow = !!(isPower || this.isPower)
|
|
this.deleteShow = !!(isPower || this.isPower)
|
|
|
- const hasRole = localStorage.getItem('hasHighRole') === '1'
|
|
|
|
|
- if (this.isSuper || hasRole) {
|
|
|
|
|
- this.updateShow = true
|
|
|
|
|
|
|
+ if(fileDownRights){ //绍兴妇幼环境限制只有文件管理员可以显示
|
|
|
|
|
+ if (this.isSuper || curRole.some(item => item == 'wjgly') ) {
|
|
|
|
|
+ this.updateShow = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{ // 其他环境
|
|
|
|
|
+ const hasRole = localStorage.getItem('hasHighRole') === '1'
|
|
|
|
|
+ if (this.isSuper || hasRole) {
|
|
|
|
|
+ this.updateShow = true
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getUserName(data) {
|
|
getUserName(data) {
|