feat(PageContent): ✨ 增加switch权限控制
This commit is contained in:
@@ -155,6 +155,7 @@
|
|||||||
:active-text="col.activeText ?? ''"
|
:active-text="col.activeText ?? ''"
|
||||||
:inactive-text="col.inactiveText ?? ''"
|
:inactive-text="col.inactiveText ?? ''"
|
||||||
:validate-event="false"
|
:validate-event="false"
|
||||||
|
:disabled="!hasAuth(`${contentConfig.pageName}:modify`)"
|
||||||
@change="
|
@change="
|
||||||
pageData.length > 0 &&
|
pageData.length > 0 &&
|
||||||
handleSwitchChange(col.prop, scope.row[col.prop], scope.row)
|
handleSwitchChange(col.prop, scope.row[col.prop], scope.row)
|
||||||
@@ -267,6 +268,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive } from "vue";
|
import { ref, reactive } from "vue";
|
||||||
import { useDateFormat } from "@vueuse/core";
|
import { useDateFormat } from "@vueuse/core";
|
||||||
|
import { hasAuth } from "@/plugins/permission";
|
||||||
import Pagination from "@/components/Pagination/index.vue";
|
import Pagination from "@/components/Pagination/index.vue";
|
||||||
import SvgIcon from "@/components/SvgIcon/index.vue";
|
import SvgIcon from "@/components/SvgIcon/index.vue";
|
||||||
import type { TableProps, CheckboxValueType } from "element-plus";
|
import type { TableProps, CheckboxValueType } from "element-plus";
|
||||||
|
|||||||
Reference in New Issue
Block a user