|
@@ -250,6 +250,10 @@ const handleDelete = async (id: number) => {
|
|
}
|
|
}
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
const openForm = (type: string, id?: number) => {
|
|
const openForm = (type: string, id?: number) => {
|
|
|
|
+ if (classType.value==='dept'){
|
|
|
|
+ message.error(t('common.deptChoose'))
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (!queryParams.classId) {
|
|
if (!queryParams.classId) {
|
|
message.error(t('common.leftNode'))
|
|
message.error(t('common.leftNode'))
|
|
return
|
|
return
|
|
@@ -259,8 +263,10 @@ const openForm = (type: string, id?: number) => {
|
|
const deviceId = ref('')
|
|
const deviceId = ref('')
|
|
const clickNodeId = ref('')
|
|
const clickNodeId = ref('')
|
|
const nodeId = ref('')
|
|
const nodeId = ref('')
|
|
|
|
+const classType = ref('')
|
|
const handleFileNodeClick = async (row) => {
|
|
const handleFileNodeClick = async (row) => {
|
|
queryParams.classId = row.id
|
|
queryParams.classId = row.id
|
|
|
|
+ classType.value = row.type
|
|
if (row.type==='device') {
|
|
if (row.type==='device') {
|
|
deviceId.value = row.originId
|
|
deviceId.value = row.originId
|
|
const queryParam = {
|
|
const queryParam = {
|