| | |
| | | }).then(() => { |
| | | try { |
| | | this.cols = JSON.parse(this.typeList.find(v => v.id === val).dpHeadFull) |
| | | if (this.cols.filter(v => v.prop === 'dplabel').length === 0) { |
| | | this.cols.unshift( |
| | | { |
| | | label: "显示名称", |
| | | prop: "dplabel", |
| | | isRequired: true, |
| | | } |
| | | ) |
| | | } |
| | | this.tabledata = [] |
| | | } catch (error) { |
| | | this.cols = [] |
| | |
| | | } else { |
| | | try { |
| | | this.cols = JSON.parse(this.typeList.find(v => v.id === val).dpHeadFull) |
| | | if (this.cols.filter(v => v.prop === 'dplabel').length === 0) { |
| | | this.cols.unshift( |
| | | { |
| | | label: "显示名称", |
| | | prop: "dplabel", |
| | | isRequired: true, |
| | | } |
| | | ) |
| | | } |
| | | |
| | | } catch (error) { |
| | | this.cols = [] |