DESKTOP-2S67K1S\31396 2 роки тому
батько
коміт
74dbde473f
1 змінених файлів з 0 додано та 69 видалено
  1. 0 69
      src/views/device/mixin/index.js

+ 0 - 69
src/views/device/mixin/index.js

@@ -1,69 +0,0 @@
-import {
-  categoryList
-} from "@/api/device/category";
-import {
-  functionList
-} from "@/api/device/function";
-
-const category = {
-  data() {
-    return {
-      categoryOptions: []
-    }
-  },
-  created() {
-    // 设备类型
-    categoryList({
-      status: 1,
-    }).then((res) => {
-      if (res.code === 0) {
-        this.categoryOptions = res.data;
-      }
-    });
-  }
-}
-
-const functions = {
-  data() {
-    return {
-      functionOptions: []
-    }
-  },
-  created() {
-    // 权限列表
-    functionList({
-      isDelete: 0
-    }).then((res) => {
-      if (res.code === 0) {
-        this.functionOptions = res.data;
-      }
-    });
-  }
-}
-
-// 设备模式
-const devType = {
-  data() {
-    return {
-      typeOptions: [{
-        value: 1,
-        label: '蓝牙'
-      }, {
-        value: 2,
-        label: 'WIFI'
-      }, {
-        value: 3,
-        label: '传统蓝牙'
-      }, {
-        value: 4,
-        label: '4G'
-      }]
-    }
-  }
-}
-
-export {
-  category,
-  functions,
-  devType
-}