@@ -684,8 +684,7 @@ export default {
},
async mounted () {
const { stateList, hideSysDeviceNo, tabList, hasDeviceRole, typeList } = await getSetting('device') || {}
- const { tagName } = await getSetting('deviceTag') || ''
- const { tagData } = await getSetting('deviceTag') || {}
+ const { tagData, tagName } = await getSetting('deviceTag') || {}
if (tagName) {
console.debug('tagName', tagName)
this.tagName = tagName
@@ -432,8 +432,7 @@ export default {
const culWays = await getSetting('risk', 'culWays')
- if (culWays) {
- console.debug(culWays)
+ if (this.$utils.isNotEmpty(culWays)) {
this.culWays = culWays
}
this.init()
@@ -222,8 +222,6 @@
<script>
import { getSetting } from '@/utils/query'
import ibpsUserSelector from '@/business/platform/org/selector'
-import xlsx from 'xlsx'
-import fs from 'file-saver'
import FecDialog from './fecDialog.vue'
import FacilityData from '@/views/component/facility/facilityData.vue'
import DefaultSettingDialog from './defaultSettingDialog.vue'
@@ -504,8 +502,7 @@ export default {
const config = await getSetting('facilityEnv', 'typeList')
- if (config) {
- console.debug(config)
+ if (this.$utils.isNotEmpty(config)) {
this.config = config