Quellcode durchsuchen

频道管理 定制频道

DESKTOP-O04BTUJ\muzen vor 3 Jahren
Ursprung
Commit
3135aebabb
1 geänderte Dateien mit 2 neuen und 13 gelöschten Zeilen
  1. 2 13
      src/views/channel/custom/index.vue

+ 2 - 13
src/views/channel/custom/index.vue

@@ -57,9 +57,10 @@
 
 <script>
 import { channelPage, page, create, editPage } from '@/api/channel/custom'
-import { devList } from '@/api/device/list'
+import { devMixin } from '@/mixin/index'
 export default {
   dicts: ['deployment_form'],
+  mixins: [devMixin],
   data() {
     return {
       // 遮罩层
@@ -76,8 +77,6 @@ export default {
         pageNum: 1,
         pageSize: 10
       },
-      // 关联设备列表
-      devOptions: [],
       index: 0,
       dialogForm: {},
       ids: []
@@ -89,16 +88,6 @@ export default {
     }
   },
   mounted() {
-    devList().then(res => {
-      if (res.code === 0) {
-        res.data.map(i => {
-          this.devOptions.push({
-            value: i.clientTypeId,
-            label: i.name
-          })
-        })
-      }
-    })
     this.getList()
   },
   methods: {