数据规则提示信息

This commit is contained in:
Qi 2025-06-05 19:45:19 +08:00
parent 90f3ef6e4d
commit 819800bef2
1 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
<template> <template>
<BasicDrawer v-bind="$attrs" @register="registerDrawer" title="数据规则配置" width="450px" destroyOnClose> <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="数据规则配置" width="450px" destroyOnClose>
<a-tabs defaultActiveKey="1"> <a-tabs defaultActiveKey="1">
<a-tab-pane tab="数据规则" key="1"> <a-tab-pane tab="数据限制规则" key="1">
<p style="color: red">未选择规则即查询所有的数据</p>
<a-checkbox-group v-model:value="dataRuleChecked" v-if="dataRuleList.length > 0"> <a-checkbox-group v-model:value="dataRuleChecked" v-if="dataRuleList.length > 0">
<a-row> <a-row>
<a-col :span="24" v-for="(item, index) in dataRuleList" :key="'dr' + index"> <a-col :span="24" v-for="(item, index) in dataRuleList" :key="'dr' + index">
@ -10,7 +11,7 @@
<a-col :span="24"> <a-col :span="24">
<div style="width: 100%; margin-top: 15px"> <div style="width: 100%; margin-top: 15px">
<a-button @click="saveDataRuleForRole" type="primary" size="small"> <Icon icon="ant-design:save-outlined"></Icon>点击保存</a-button> <a-button @click="saveDataRuleForRole" type="primary" size="small"> <Icon icon="ant-design:save-outlined" />点击保存</a-button>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
@ -21,7 +22,7 @@
</BasicDrawer> </BasicDrawer>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, unref } from 'vue'; import { ref, unref, nextTick } from 'vue';
import { BasicDrawer, useDrawerInner } from '/src/components/Drawer'; import { BasicDrawer, useDrawerInner } from '/src/components/Drawer';
import { useMessage } from '/src/hooks/web/useMessage'; import { useMessage } from '/src/hooks/web/useMessage';
import { queryDataRule, saveDataRule } from '../role.api'; import { queryDataRule, saveDataRule } from '../role.api';