Commit 2c7ea38c authored by ztf's avatar ztf

合并最新4.1

parent 3f1639b1
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>dee-lifecycle [8 Aug 2024 at 10:05]</title>
<title>dee-lifecycle [14 Aug 2024 at 15:37]</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEE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AiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
<script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,7 +44,7 @@ export default {
immediate: true,
handler({ id, versionId, dxContextId }) {
const objId = this.isValidVal(versionId) ? versionId : id
if (!this.isValidVal(objId)) return
if (!this.isValidVal(objId) || !dxContextId) return
getFolderFullPath({ objId, contextId: dxContextId })
.then(({ items }) => {
this.folders = Array.isArray(items) ? items : []
......
......@@ -123,15 +123,18 @@ const actions = {
getUserRole(userVO.id)
.then(res => {
const roles = res.items.content || []
const syNames = ['sysadmin', 'audadmin', 'secadmin']
const syNames = ['sysadmin', 'subsysadmin', 'audadmin', 'subaudadmin', 'secadmin', 'subsecadmin']
// 是管理员
let isAdmin = false
// 是系统管理员
let isSysAdmin = false
let isSubSysAdmin = false
// 是审计管理员
let isAudAdmin = false
let isSubAudAdmin = false
// 是安全管理员
let isSecAdmin = false
let isSubSecAdmin = false
roles.forEach(m => {
if (!isAdmin) {
isAdmin = syNames.includes(m.name)
......@@ -139,14 +142,23 @@ const actions = {
if (!isSysAdmin) {
isSysAdmin = m.name === 'sysadmin'
}
if (!isSubSysAdmin) {
isSubSysAdmin = m.name === 'subsysadmin'
}
if (!isAudAdmin) {
isAudAdmin = m.name === 'audadmin'
}
if (!isSubAudAdmin) {
isSubAudAdmin = m.name === 'subaudadmin'
}
if (!isSecAdmin) {
isSecAdmin = m.name === 'secadmin'
}
if (!isSubSecAdmin) {
isSubSecAdmin = m.name === 'subsecadmin'
}
})
commit('SET_TERNARY_USER_INFO', { isAdmin, isSysAdmin, isAudAdmin, isSecAdmin })
commit('SET_TERNARY_USER_INFO', { isAdmin, isSysAdmin, isSubSysAdmin, isAudAdmin, isSubAudAdmin, isSecAdmin, isSubSecAdmin })
})
.catch(() => {
commit('SET_TERNARY_USER_INFO', {})
......
......@@ -47,7 +47,7 @@ export function getAttr(params) {
}
// 修改模型属性
export function putAttr(params) {
return put('/ModelAttr', params)
return put('/ModelAttr/updateModelAttr', params)
}
// 新增关联关系
export function postAttrRelation(params) {
......@@ -60,7 +60,7 @@ export function editAttrRelation(params) {
// 添加模型属性
export function postAttr(params) {
params.createType = 'CREATE'
return post('/ModelAttr', params, true)
return post('/ModelAttr/saveModelAttr', params, true)
}
// 修改单个模型信息
export function putDefinition(params) {
......
......@@ -28,5 +28,5 @@ export function getModelByName(params) {
}
// 查询二级属性
export function getAllAttrByModelName(modelName) {
return get(`/ModelAttr/${modelName}?onlyBase=false`)
return get(`/ModelAttr/findModelAttrByModelName/${modelName}?onlyBase=false`)
}
<template>
<div class="dee-model">
<span v-if="readOnly">
<!-- <span v-if="readOnly">
{{ showValue||'' }}
</span>
<div v-else>
</span> -->
<div>
<el-input
v-if="foreign==='ExtContactList'"
v-model="proposedUnit"
......@@ -37,19 +37,19 @@ export default {
type: Object,
default: null
},
scope: {
type: Object,
default: null
},
disabled: {
type: Boolean,
default: false
// scope: {
// type: Object,
// default: null
// },
// disabled: {
// type: Boolean,
// default: false
},
readOnly: {
type: Boolean,
default: false
},
// },
// readOnly: {
// type: Boolean,
// default: false
// },
value: {
type: [String, Object, Array],
default: () => ''
......@@ -63,9 +63,6 @@ export default {
},
computed: {
showValue() {
console.log('readOnly', this.readOnly)
console.log('操作value', this.value)
console.log('监听value之后赋值', this.proposedUnit)
if (!this.proposedUnit) {
return ''
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment