diff --git a/src/components/config/function-config-pending.vue b/src/components/config/function-config-pending.vue index b551e6b..5b9f3dc 100644 --- a/src/components/config/function-config-pending.vue +++ b/src/components/config/function-config-pending.vue @@ -107,7 +107,7 @@ - + 提交 重置 @@ -137,6 +137,7 @@ const store = useStore(); const currentDeviceId = computed(() => store.state.device.currentDeviceId); const emit = defineEmits(['status']); const props = defineProps({ activeName: String }); +const isAdmin = computed(() => store.getters['user/isAdmin']); /** * 格式化时间 diff --git a/src/components/config/network-config-pending.vue b/src/components/config/network-config-pending.vue index 8b920e9..9c727b9 100644 --- a/src/components/config/network-config-pending.vue +++ b/src/components/config/network-config-pending.vue @@ -65,7 +65,7 @@ - + 提交 重置 @@ -92,6 +92,7 @@ const store = useStore(); const currentDeviceId = computed(() => store.state.device.currentDeviceId); const emit = defineEmits(['status']); const props = defineProps({ activeName: String }); +const isAdmin = computed(() => store.getters['user/isAdmin']); /** * 查询网络参数配置 diff --git a/src/components/history/local.vue b/src/components/history/local.vue index 5df139d..6ff352f 100644 --- a/src/components/history/local.vue +++ b/src/components/history/local.vue @@ -77,7 +77,6 @@ const getData = async () => { const options = { ...search.value }; const date = options && options.date ? options.date : []; - console.log(date); if (!date || date.length !== 2) { return ElMessage.error('请选择时间 '); } diff --git a/src/components/history/missing-data.vue b/src/components/history/missing-data.vue index 06c0e30..4d69c3e 100644 --- a/src/components/history/missing-data.vue +++ b/src/components/history/missing-data.vue @@ -14,21 +14,25 @@