fix: 属性只读问题修改

This commit is contained in:
qinoy 2024-11-25 09:51:36 +08:00
parent 9d19fb7eae
commit 8eda7b749a
2 changed files with 13 additions and 4 deletions

View File

@ -1207,7 +1207,10 @@ function removeTr(obj) {
//打开对象关联Dialog
function openRelationDialog(obj, callback) {
let readOnly = obj.prop('readonly');
if (readOnly) return;
let val = obj.val();
if (val && readOnly){
return;
}
var title = obj.closest('tr').find('td:first').text();
if (title == undefined || title == '') {
title = '选择模型对象';
@ -1669,8 +1672,11 @@ function selectAttrTabTag(showContent, selfObj) {
// 关联bpm组织架构dlg
function openRelationAwsorgDialog(obj) {
let readonly = obj.prop('readonly');
if (readonly) return;
let readOnly = obj.prop('readonly');
let val = obj.val();
if (val && readOnly){
return;
}
var title = obj.closest('tr').find('td:first').text();
if (title == undefined || title == '') {
title = '添加AWS PaaS平台组织';

View File

@ -3296,7 +3296,10 @@ function getRelevanceShapeNameByShapeId(objIds, shapeId) {
// 关联aws组织
function openOrganizationRelationDig(obj, value) {
if (value.readonly) return;
let attrVal = $(obj).attr("value");
if (attrVal && value.readonly){
return;
}
var shapeAwsOrgValue = $("input[objid_shapeId='" + $(obj).attr("objid") + "']").val();
var ref = $("input[objid_shapeId='" + $(obj).attr("objid") + "']").attr("ref");
var id = sid;