已修改角色、新增用户、检测源列表、被检设备列表、检测脚本列表
This commit is contained in:
@@ -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;
|
||||
}>();
|
||||
|
||||
Reference in New Issue
Block a user