|
@@ -239,9 +239,9 @@ const showTools = {
|
|
|
*
|
|
|
*/
|
|
|
headerTextFilter(arr, type, onlyRead, showType, taizhang = false) {
|
|
|
- if (taizhang && !onlyRead) {
|
|
|
- arr = this.arrToArr(arr, showType)
|
|
|
- }
|
|
|
+ // if (taizhang && !onlyRead) {
|
|
|
+ // arr = this.arrToArr(arr, showType)
|
|
|
+ // }
|
|
|
let data = arr.map(item => {
|
|
|
// if (type == "property" && item.firstTag == "RunParam") { //资产台账不显示运行参数
|
|
|
// return undefined
|
|
@@ -258,9 +258,9 @@ const showTools = {
|
|
|
return undefined
|
|
|
}
|
|
|
} else { //编辑模式
|
|
|
- if (taizhang && !this.filterFirm(item.code)) {
|
|
|
- return undefined
|
|
|
- }
|
|
|
+ // if (taizhang && !this.filterFirm(item.code)) {
|
|
|
+ // return undefined
|
|
|
+ // }
|
|
|
if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
|
|
|
return undefined
|
|
|
}
|
|
@@ -284,9 +284,9 @@ const showTools = {
|
|
|
return data
|
|
|
},
|
|
|
headerTypeFilter(arr, type, onlyRead, showType, taizhang = false) {
|
|
|
- if (taizhang && !onlyRead) {
|
|
|
- arr = this.arrToArr(arr, showType)
|
|
|
- }
|
|
|
+ // if (taizhang && !onlyRead) {
|
|
|
+ // arr = this.arrToArr(arr, showType)
|
|
|
+ // }
|
|
|
text.readOnly = onlyRead;
|
|
|
let data = arr.map(item => {
|
|
|
// if (type == "property" && item.firstTag == "runParam") { //资产台账不显示运行参数
|
|
@@ -304,9 +304,9 @@ const showTools = {
|
|
|
return undefined
|
|
|
}
|
|
|
} else { //编辑模式
|
|
|
- if (taizhang && !this.filterFirm(item.code)) {
|
|
|
- return undefined
|
|
|
- }
|
|
|
+ // if (taizhang && !this.filterFirm(item.code)) {
|
|
|
+ // return undefined
|
|
|
+ // }
|
|
|
if (!this.filterUnshow(onlyRead, type, item.code)) { //过滤固定不显示字段
|
|
|
return undefined
|
|
|
}
|
|
@@ -491,18 +491,18 @@ const showTools = {
|
|
|
}
|
|
|
|
|
|
//四大厂商
|
|
|
- if (
|
|
|
- item.code == "dpSupplierId" ||
|
|
|
- item.code == "dpMaintainerId" ||
|
|
|
- item.code == "dpInsurerId" ||
|
|
|
- item.code == "dpManufacturerId"
|
|
|
- ) {
|
|
|
- return {
|
|
|
- data: item.path,
|
|
|
- renderer: text.idType,
|
|
|
- readOnly: !item.editable
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (
|
|
|
+ // item.code == "dpSupplierId" ||
|
|
|
+ // item.code == "dpMaintainerId" ||
|
|
|
+ // item.code == "dpInsurerId" ||
|
|
|
+ // item.code == "dpManufacturerId"
|
|
|
+ // ) {
|
|
|
+ // return {
|
|
|
+ // data: item.path,
|
|
|
+ // renderer: text.idType,
|
|
|
+ // readOnly: !item.editable
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (!item.category) {
|
|
|
console.log('新版字典无输入类型', item)
|
|
|
}
|