|
120 | 120 | @foreach (var column in Model.TableField){
|
121 | 121 | if(@column.WhetherTable == "Y"){
|
122 | 122 | if(@column.EffectType == "Upload"||@column.EffectType == "fk"||@column.EffectType == "ApiTreeSelect"||@column.EffectType == "Switch"||@column.EffectType == "ConstSelector"){
|
123 |
| - @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" width="@(column.ColumnComment!=null && column.ColumnComment.Length > 5 ? column.ColumnComment.Length * 15 : 120)" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip=""> |
| 123 | + @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip=""> |
124 | 124 | @:<template #default="scope">
|
125 | 125 | if(@column.EffectType == "Upload"){
|
126 | 126 | @:<el-image
|
|
149 | 149 | </el-table-column>
|
150 | 150 | }
|
151 | 151 | else if(@column.EffectType == "Select"){
|
152 |
| - @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" width="@(column.ColumnComment!=null && column.ColumnComment.Length > 5 ? column.ColumnComment.Length * 15 : 140)" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" > |
| 152 | + @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" > |
153 | 153 | @:<template #default="scope">
|
154 | 154 | @:<el-tag :type="di('@(@column.DictTypeCode)', scope.row.@(@column.LowerPropertyName))?.tagType"> {{di("@(@column.DictTypeCode)", scope.row.@(@column.LowerPropertyName))?.value}} </el-tag>
|
155 | 155 | @:</template>
|
156 | 156 | @:</el-table-column>
|
157 | 157 | }
|
158 | 158 | else if(@column.EffectType == "EnumSelector"){
|
159 |
| - @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" width="@(column.ColumnComment!=null && column.ColumnComment.Length > 5 ? column.ColumnComment.Length * 15 : 140)" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" > |
| 159 | + @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" > |
160 | 160 | @:<template #default="scope">
|
161 | 161 | @:<el-tag>{{ getEnumDesc( [email protected], getEnum@(@column.PropertyName)Data_Index)}}</el-tag>
|
162 | 162 | @:</template>
|
163 | 163 | @:</el-table-column>
|
164 | 164 | }
|
165 | 165 | else {
|
166 |
| - @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" width="@(column.ColumnComment!=null && column.ColumnComment.Length > 5 ? column.ColumnComment.Length * 15 : 140)" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" /> |
| 166 | + @:<el-table-column prop="@column.LowerPropertyName" label="@column.ColumnComment" @(column.WhetherSortable == "Y" ? "sortable='custom'" : "") show-overflow-tooltip="" /> |
167 | 167 | }
|
168 | 168 | }
|
169 | 169 | }
|
|
0 commit comments