|
|
@ -53,6 +53,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import request from '@/utils/request'
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
import { getStorageItem } from '@/utils/storage';
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
dictCode: null, // 当传入dictCode时,可以不用传递url
|
|
|
|
dictCode: null, // 当传入dictCode时,可以不用传递url
|
|
|
@ -204,7 +205,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 从本地localStorage取 gaeaDict
|
|
|
|
// 从本地localStorage取 gaeaDict
|
|
|
|
getOptionsFromLocalStorage () {
|
|
|
|
getOptionsFromLocalStorage () {
|
|
|
|
var dicts = JSON.parse(localStorage.getItem('gaeaDict'))
|
|
|
|
var dicts = getStorageItem('gaeaDict')
|
|
|
|
var options = []
|
|
|
|
var options = []
|
|
|
|
if (!dicts.hasOwnProperty(this.dictCode)) {
|
|
|
|
if (!dicts.hasOwnProperty(this.dictCode)) {
|
|
|
|
return []
|
|
|
|
return []
|
|
|
|