doway-coms 1.6.27 → 1.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1856,6 +1856,16 @@ export default {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
this.$refs.baseGrid.refreshColumn()
|
|
1858
1858
|
},
|
|
1859
|
+
setColumnFormatter(field,formatterName){
|
|
1860
|
+
for (let i = 0; i < this.internalColumns.length; i++) {
|
|
1861
|
+
if (this.internalColumns[i].field == field) {
|
|
1862
|
+
this.internalColumns[i].formatter = formatterName
|
|
1863
|
+
this.$refs.baseGrid.getColumnByField(field).formatter = formatterName
|
|
1864
|
+
break
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
this.$refs.baseGrid.refreshColumn()
|
|
1868
|
+
},
|
|
1859
1869
|
setEdit(currentState, currentStatus) {
|
|
1860
1870
|
//设置添加按钮
|
|
1861
1871
|
if (this.pager.buttons) {
|