|
|
@ -102,6 +102,25 @@ |
|
|
|
close() { |
|
|
|
this.$emit('closeRowDrop') |
|
|
|
}, |
|
|
|
// save () { |
|
|
|
// this.$emit('closeRowDrop') |
|
|
|
// this.$emit('radio',this.dataList) |
|
|
|
// // 本地缓存 当前用户名 + 路由名称 |
|
|
|
// localStorage.setItem(this.$store.getters.name.userName + '_' + this.$route.name, JSON.stringify(this.dataList)) |
|
|
|
// }, |
|
|
|
// 格式化表头数据 |
|
|
|
formatData (val) { |
|
|
|
this.dataList = JSON.parse(JSON.stringify(val)) |
|
|
|
this.dataList.forEach(item => { |
|
|
|
if (item.isture == undefined) { |
|
|
|
item.isture = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 拖拽事件 |
|
|
|
handleEdit(index, row) { |
|
|
|
console.log(index, row); |
|
|
|
}, |
|
|
|
save () { |
|
|
|
this.$forceUpdate() |
|
|
|
this.$emit('radio',this.dataList) |
|
|
|