zhaowei
2025-02-14 7a173d873b252b4b04e6ff034a18f8b808ccab05
src/views/dnc/base/modules/DeviceStructure/DeviceStructureTree.vue
@@ -41,8 +41,7 @@
</template>
<script>
  import { mapActions } from 'vuex'
  import { deleteAction } from '@/api/manage'
  import dncApi from '@/api/dnc'
  import DeviceStructureTreeContextMenu from './DeviceStructureTreeContextMenu'
  import AssignPermissionModal from './Permission/AssignPermissionModal'
@@ -79,12 +78,11 @@
      this.$bus.$on('handleSwitchDeviceDocClassCode', this.setCurrentDeviceDocClassCode)
    },
    methods: {
      ...mapActions(['QueryProduction']),
      getTreeDataByApi() {
        this.loading = true
        this.cardLoading = true
        this.QueryProduction('DNC').then(res => {
        dncApi.getDeviceTreeDataApi()
          .then(res => {
          if (res.success) {
            this.dataList = []
            this.allTreeKeys = []
@@ -95,7 +93,8 @@
          } else {
            this.$message.warn(res.message)
          }
        }).finally(() => {
          })
          .finally(() => {
          this.loading = false
          this.cardLoading = false
        })