DESKTOP-O04BTUJ\muzen 3 lat temu
rodzic
commit
c2168454fc
1 zmienionych plików z 22 dodań i 1 usunięć
  1. 22 1
      src/mixin/index.js

+ 22 - 1
src/mixin/index.js

@@ -2,6 +2,7 @@ import {
   getClientTypeList
 } from '@/api/device/version'
 
+// 设备列表
 const devMixin = {
   data() {
     return {
@@ -22,4 +23,24 @@ const devMixin = {
   },
 }
 
-export { devMixin }
+// 服务时长
+const serviceTimeMixin = {
+  data() {
+    return {
+      serviceTimeOptions: [
+        { value: 1, label: '7天' },
+        { value: 2, label: '14天' },
+        { value: 3, label: '1个月' },
+        { value: 4, label: '3个月' },
+        { value: 5, label: '6个月' },
+        { value: 6, label: '1年' },
+        { value: 7, label: '2年' },
+        { value: 8, label: '3年' },
+        { value: 9, label: '5年' },
+        { value: 0, label: '永久' }
+      ]
+    }
+  }
+}
+
+export { devMixin, serviceTimeMixin }