|
@@ -1125,7 +1125,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.lookQRCode,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1138,7 +1138,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.picType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1163,7 +1163,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.fileType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1177,7 +1177,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
renderer: text.idType,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1186,7 +1186,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
chosenOptions: {
|
|
|
data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
|
|
|
}
|
|
@@ -1196,7 +1196,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
renderer: tools.customDropdownRenderer,
|
|
|
editor: "chosen",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
chosenOptions: {
|
|
|
multiple: true, //多选
|
|
|
data: item.DataSource ? tools.formatDataSource(item.DataSource) : ""
|
|
@@ -1206,7 +1206,7 @@ const showTools = {
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
type: "numeric",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
numericFormat: {
|
|
|
pattern: "0,0.00"
|
|
|
}
|
|
@@ -1216,7 +1216,7 @@ const showTools = {
|
|
|
data: item.Path,
|
|
|
type: "date",
|
|
|
dateFormat: "YYYYMMDDHHmmss",
|
|
|
- readOnly: !item.Editable,
|
|
|
+ readOnly: onlyRead,
|
|
|
correctFormat: true
|
|
|
};
|
|
|
} else if (item.InputMode == "B1" ||
|
|
@@ -1229,12 +1229,12 @@ const showTools = {
|
|
|
item.InputMode == "M") { //文本输入
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyRead
|
|
|
}
|
|
|
} else { //(未支持的输入方式)暂不支持编辑
|
|
|
return {
|
|
|
data: item.Path,
|
|
|
- readOnly: !item.Editable
|
|
|
+ readOnly: onlyReadc
|
|
|
}
|
|
|
}
|
|
|
},
|