mirror of https://github.com/certd/certd
chore:
parent
5c992c3214
commit
e626367a06
|
@ -2,7 +2,7 @@ import { request } from "/@/api/service";
|
|||
export type ComponentPropsType = {
|
||||
type: string;
|
||||
typeName: string;
|
||||
action: string;
|
||||
action?: string;
|
||||
form: any;
|
||||
value?: any;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<contextHolder />
|
||||
<a-input :value="value" :allow-clear="true" v-bind="attrs" @update:value="emit('update:value', $event)">
|
||||
<a-input v-bind="attrs" :value="value" :allow-clear="true" @update:value="emit('update:value', $event)">
|
||||
<template #suffix>
|
||||
<a-tag class="cursor-pointer" @click="getDeviceId">获取设备ID</a-tag>
|
||||
</template>
|
||||
|
|
|
@ -2,8 +2,21 @@
|
|||
<div class="fs-multiple-page-control-group">
|
||||
<div class="fs-multiple-page-control-content">
|
||||
<div class="fs-multiple-page-control-content-inner">
|
||||
<a-tabs class="fs-multiple-page-control fs-multiple-page-sort" :active-key="page.getCurrent" type="editable-card" hide-add @tab-click="handleClick" @edit="handleTabEdit">
|
||||
<a-tab-pane v-for="item in page.getOpened" :key="item.fullPath" :tab="item.meta?.title || '未命名'" :name="item.fullPath" :closable="isTabClosable(item)" />
|
||||
<a-tabs
|
||||
class="fs-multiple-page-control fs-multiple-page-sort"
|
||||
:active-key="page.getCurrent"
|
||||
type="editable-card"
|
||||
hide-add
|
||||
@tab-click="handleClick"
|
||||
@edit="handleTabEdit"
|
||||
>
|
||||
<a-tab-pane
|
||||
v-for="item in page.getOpened"
|
||||
:key="item.fullPath"
|
||||
:tab="item.meta?.title || '未命名'"
|
||||
:name="item.fullPath"
|
||||
:closable="isTabClosable(item)"
|
||||
/>
|
||||
</a-tabs>
|
||||
<!-- <fs-contextmenu v-model:open="contextmenuFlag" :x="contentmenuX" :y="contentmenuY">-->
|
||||
<!-- <fs-contextmenu-list-->
|
||||
|
|
|
@ -4,7 +4,7 @@ export const headerResource = [
|
|||
path: "https://certd.docmirror.cn",
|
||||
meta: {
|
||||
icon: "ion:document-text-outline"
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "源码",
|
||||
|
|
|
@ -16,7 +16,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
|
|||
}
|
||||
};
|
||||
|
||||
function buildDefineFields(define: any, form: any) {
|
||||
function buildDefineFields(define: any, form: any, mode: string) {
|
||||
const formWrapperRef = crudExpose.getFormWrapperRef();
|
||||
const columnsRef = toRef(formWrapperRef.formOptions, "columns");
|
||||
|
||||
|
@ -34,7 +34,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
|
|||
};
|
||||
const column = merge({ title: key }, defaultPluginConfig, field);
|
||||
|
||||
if (value.encrypt === true) {
|
||||
if (value.encrypt === true && mode != "add") {
|
||||
column.suffixRender = (scope: { form: any; key: string }) => {
|
||||
const { form, key } = scope;
|
||||
const inputKey = scope.key.replace("access.", "");
|
||||
|
@ -92,7 +92,7 @@ export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) {
|
|||
if (!immediate) {
|
||||
form.access = {};
|
||||
}
|
||||
buildDefineFields(define, form);
|
||||
buildDefineFields(define, form, mode);
|
||||
}
|
||||
},
|
||||
helper: computed(() => {
|
||||
|
|
|
@ -16,8 +16,6 @@ export class PluginManager {
|
|||
}
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export const pluginManager = new PluginManager();
|
||||
|
|
Loading…
Reference in New Issue