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 = {