|
|
@ -107,7 +107,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import {MdpSelectMixin } from "../../mdp-ui/mixin/MdpSelectMixin.js" |
|
|
import {MdpSelectMixin } from "../../mdp-ui/mixin/MdpSelectMixin.js" |
|
|
var tableDataCacheMap=new Map(); |
|
|
|
|
|
|
|
|
const tableDataCacheMap=new Map(); |
|
|
export default { |
|
|
export default { |
|
|
components: { }, |
|
|
components: { }, |
|
|
name: 'mdp-select-table', |
|
|
name: 'mdp-select-table', |
|
|
@ -170,16 +170,9 @@ |
|
|
var tableDataCacheList=this.getCacheList(); |
|
|
var tableDataCacheList=this.getCacheList(); |
|
|
if(tableDataCacheList && tableDataCacheList.length>0){ |
|
|
if(tableDataCacheList && tableDataCacheList.length>0){ |
|
|
this.item={itemType:'4',options:tableDataCacheList} |
|
|
this.item={itemType:'4',options:tableDataCacheList} |
|
|
}else{ |
|
|
|
|
|
var tableDatasStr=localStorage.getItem(this.codeKey) |
|
|
|
|
|
if(tableDatasStr){ |
|
|
|
|
|
var tableDatas=JSON.parse(tableDatasStr) |
|
|
|
|
|
this.item={itemType:'4',options:tableDatas} |
|
|
|
|
|
this.setCacheList(tableDatas) |
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
this.item={itemType:'4',options:[]} |
|
|
this.item={itemType:'4',options:[]} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if(this.value){ |
|
|
if(this.value){ |
|
|
var mVals=[] |
|
|
var mVals=[] |
|
|
if(this.value instanceof Array){ |
|
|
if(this.value instanceof Array){ |
|
|
@ -234,8 +227,6 @@ |
|
|
this.$refs['tableDialog'].close(); |
|
|
this.$refs['tableDialog'].close(); |
|
|
}, |
|
|
}, |
|
|
onClose(){ |
|
|
onClose(){ |
|
|
var tableDataCacheList=this.getCacheList(); |
|
|
|
|
|
localStorage.setItem(this.codeKey,JSON.stringify(tableDataCacheList)); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
@ -245,11 +236,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
beforeDestroy(){ |
|
|
|
|
|
var tableDataCacheList=this.getCacheList(); |
|
|
|
|
|
localStorage.setItem(this.codeKey,JSON.stringify(tableDataCacheList)); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|