|
|
@ -3,6 +3,7 @@ import { ElMessage } from 'element-plus' |
|
|
|
import { cloneDeep } from 'lodash' |
|
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
|
import { useHomeStore } from 'stores/homeStore' |
|
|
|
import { useSystemStore } from 'stores/systemStore' |
|
|
|
import { computed, inject, nextTick, onMounted, ref, watch, watchEffect } from 'vue' |
|
|
|
|
|
|
|
import { FtMessage } from '@/libs/message' |
|
|
@ -222,6 +223,7 @@ const deviceType = computed(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
const deviceStore = useDeviceStore() |
|
|
|
const systemStore = useSystemStore() |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -230,6 +232,7 @@ const deviceStore = useDeviceStore() |
|
|
|
<el-form |
|
|
|
ref="formRef" |
|
|
|
:model="formData" |
|
|
|
:disabled="systemStore.systemUser.roleType !== 'admin'" |
|
|
|
class="form-box" |
|
|
|
label-width="auto" |
|
|
|
label-position="right" |
|
|
@ -315,7 +318,7 @@ const deviceStore = useDeviceStore() |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div class="default-btn"> |
|
|
|
<el-button type="primary" class="config-btn" @click="handleSubmit"> |
|
|
|
<el-button v-if="systemStore.systemUser.roleType === 'admin'" type="primary" class="config-btn" @click="handleSubmit"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|