From 7c70024fa05e02cf3e6b8f4adfd2a63e6c348023 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com>
Date: Thu, 12 Sep 2024 17:10:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/DeviceUsingStatusTag.vue | 20 ++++++++++
src/views/system/device/detail.vue | 9 ++++-
src/views/system/device/index.vue | 37 +++++++++++++------
src/views/system/smUser/index.vue | 2 +-
4 files changed, 53 insertions(+), 15 deletions(-)
create mode 100644 src/views/system/device/components/DeviceUsingStatusTag.vue
diff --git a/src/views/system/device/components/DeviceUsingStatusTag.vue b/src/views/system/device/components/DeviceUsingStatusTag.vue
new file mode 100644
index 0000000..5a65b91
--- /dev/null
+++ b/src/views/system/device/components/DeviceUsingStatusTag.vue
@@ -0,0 +1,20 @@
+
+ 使用中
+ 待使用
+
+
+
diff --git a/src/views/system/device/detail.vue b/src/views/system/device/detail.vue
index f5d790b..ac895ad 100644
--- a/src/views/system/device/detail.vue
+++ b/src/views/system/device/detail.vue
@@ -48,8 +48,11 @@
{{deviceData.mac | defaultValue}}
{{deviceData.deviceNo | defaultValue}}
{{deviceData.model | defaultValue}}
-
-
+
+
+
+
+
@@ -183,11 +186,13 @@ import { isEmpty } from '@/utils'
import { checkPermi } from '@/utils/permission'
import { BonusArrivalType, FieldName, ROOT_DEPT } from '@/utils/constants'
import { mapGetters } from 'vuex'
+import DeviceUsingStatusTag from '@/views/system/device/components/DeviceUsingStatusTag.vue'
export default {
name: 'Device/:deviceId',
mixins: [$serviceType, $view],
components: {
+ DeviceUsingStatusTag,
Recharge,
RechargeList,
LineField,
diff --git a/src/views/system/device/index.vue b/src/views/system/device/index.vue
index 216c734..aeaa725 100644
--- a/src/views/system/device/index.vue
+++ b/src/views/system/device/index.vue
@@ -43,14 +43,20 @@
/>
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -178,9 +184,14 @@
-
+
+
+
+
+
+
-
+
@@ -321,12 +332,13 @@ import StoreLink from '@/components/Business/Store/StoreLink.vue'
import DeviceLink from '@/components/Business/Device/DeviceLink.vue'
import { $serviceType, $view } from '@/utils/mixins'
import { FieldName, SmUserType } from '@/utils/constants'
+import DeviceUsingStatusTag from '@/views/system/device/components/DeviceUsingStatusTag.vue'
export default {
name: "Device",
mixins: [$serviceType, $view],
dicts: ['sm_device_online_status', 'sm_device_status', 'sm_device_outage_way','sm_device_notice_way', 'service_type', 'time_unit'],
- components: { DeviceLink, StoreLink, UserLink, ModelDialog, UserInput, StoreInput, SnInput, QrCode, SmUserSelect, ModelSelect},
+ components: { DeviceUsingStatusTag, DeviceLink, StoreLink, UserLink, ModelDialog, UserInput, StoreInput, SnInput, QrCode, SmUserSelect, ModelSelect},
props: {
query: {
type: Object,
@@ -372,7 +384,8 @@ export default {
status: null,
userName: null,
tenantName: null,
- isArrears: null
+ isArrears: null,
+ isUsing: null
},
// 表单参数
form: {},
diff --git a/src/views/system/smUser/index.vue b/src/views/system/smUser/index.vue
index 99907bf..1a143ac 100644
--- a/src/views/system/smUser/index.vue
+++ b/src/views/system/smUser/index.vue
@@ -241,7 +241,7 @@ import { $serviceType, $showColumns, $withdrawServiceType } from '@/utils/mixins
import UserLink from '@/components/Business/SmUser/UserLink.vue'
import UserInput from '@/components/Business/SmUser/UserInput.vue'
import DeptTreeSelect from '@/components/Business/Dept/DeptTreeSelect.vue'
-import { FieldName, ROOT_DEPT, SmUserType, UserType } from '@/utils/constants'
+import { FieldName, ROOT_DEPT, SmUserType } from '@/utils/constants'
import { mapGetters } from 'vuex'
const defaultSort = {