mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore:
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { getCommonColumnDefine } from "/@/views/certd/access/common";
|
import { getCommonColumnDefine } from "/@/views/certd/access/common";
|
||||||
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, EditReq, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud";
|
import { AddReq, CreateCrudOptionsProps, CreateCrudOptionsRet, DelReq, dict, EditReq, UserPageQuery, UserPageRes } from "@fast-crud/fast-crud";
|
||||||
|
|
||||||
export default function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
export default function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
@@ -70,6 +70,33 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
width: 300
|
width: 300
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
from: {
|
||||||
|
title: "级别",
|
||||||
|
type: "dict-select",
|
||||||
|
dict: dict({
|
||||||
|
data: [
|
||||||
|
{ label: "系统", value: "sys" },
|
||||||
|
{ label: "用户", value: "user" }
|
||||||
|
]
|
||||||
|
}),
|
||||||
|
search: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
form: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
column: {
|
||||||
|
width: 100,
|
||||||
|
align: "center",
|
||||||
|
component: {
|
||||||
|
color: "auto"
|
||||||
|
},
|
||||||
|
order: 10
|
||||||
|
},
|
||||||
|
valueBuilder: ({ row, key, value }) => {
|
||||||
|
row[key] = row.userId > 0 ? "user" : "sys";
|
||||||
|
}
|
||||||
|
},
|
||||||
...commonColumnsDefine
|
...commonColumnsDefine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { createAccessApi } from "/@/views/certd/access/api";
|
|||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "SysAccessManager",
|
name: "SysAccessManager",
|
||||||
setup() {
|
setup() {
|
||||||
const api = createAccessApi("/sys/access");
|
const api = createAccessApi("sys");
|
||||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: { api } });
|
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: { api } });
|
||||||
|
|
||||||
// 页面打开后获取列表数据
|
// 页面打开后获取列表数据
|
||||||
|
|||||||
Reference in New Issue
Block a user