已修改角色、新增用户、检测源列表、被检设备列表、检测脚本列表

This commit is contained in:
GYYM
2024-10-23 20:53:58 +08:00
parent e62f033e07
commit 8e9cda8c78
24 changed files with 997 additions and 196 deletions

View File

@@ -1,6 +1,6 @@
<template>
<!-- 基础信息弹出框 -->
<el-dialog :model-value="dialogVisible" :title="title" @close="handleCancel" width="800" draggable>
<el-dialog :model-value="dialogVisible" :title="title" v-bind="dialogSmall" @close="handleCancel" width="500" draggable>
<div>
<el-form :model="data">
<el-form-item label="角色类型名称" :label-width="100">
@@ -36,9 +36,9 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const value = ref(true)
import { ref,computed } from 'vue'
import {dialogSmall} from '@/utils/elementBind'
const {dialogVisible,title,data} = defineProps<{
dialogVisible:boolean;
title:string;
@@ -49,6 +49,12 @@
describe:string;
}
}>();
const value = computed({
get: () => data.status === 1,
set: (value: boolean) => data.status = value ? 1 : 0
})
const emit = defineEmits<{
(e:'update:visible',value:boolean):void;
}>();