fix: 属性只读问题修改
This commit is contained in:
parent
9d19fb7eae
commit
8eda7b749a
@ -1207,7 +1207,10 @@ function removeTr(obj) {
|
|||||||
//打开对象关联Dialog
|
//打开对象关联Dialog
|
||||||
function openRelationDialog(obj, callback) {
|
function openRelationDialog(obj, callback) {
|
||||||
let readOnly = obj.prop('readonly');
|
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();
|
var title = obj.closest('tr').find('td:first').text();
|
||||||
if (title == undefined || title == '') {
|
if (title == undefined || title == '') {
|
||||||
title = '选择模型对象';
|
title = '选择模型对象';
|
||||||
@ -1669,8 +1672,11 @@ function selectAttrTabTag(showContent, selfObj) {
|
|||||||
|
|
||||||
// 关联bpm组织架构dlg
|
// 关联bpm组织架构dlg
|
||||||
function openRelationAwsorgDialog(obj) {
|
function openRelationAwsorgDialog(obj) {
|
||||||
let readonly = obj.prop('readonly');
|
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();
|
var title = obj.closest('tr').find('td:first').text();
|
||||||
if (title == undefined || title == '') {
|
if (title == undefined || title == '') {
|
||||||
title = '添加AWS PaaS平台组织';
|
title = '添加AWS PaaS平台组织';
|
||||||
|
|||||||
@ -3296,7 +3296,10 @@ function getRelevanceShapeNameByShapeId(objIds, shapeId) {
|
|||||||
|
|
||||||
// 关联aws组织
|
// 关联aws组织
|
||||||
function openOrganizationRelationDig(obj, value) {
|
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 shapeAwsOrgValue = $("input[objid_shapeId='" + $(obj).attr("objid") + "']").val();
|
||||||
var ref = $("input[objid_shapeId='" + $(obj).attr("objid") + "']").attr("ref");
|
var ref = $("input[objid_shapeId='" + $(obj).attr("objid") + "']").attr("ref");
|
||||||
var id = sid;
|
var id = sid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user