mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 16:30:25 +08:00 
			
		
		
		
	refactor: 初步提交全局授权凭证-资源多账号改造
This commit is contained in:
		
							
								
								
									
										28
									
								
								mayfly_go_web/src/views/ops/component/ResourceAuthCert.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								mayfly_go_web/src/views/ops/component/ResourceAuthCert.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
<template>
 | 
			
		||||
    <div v-if="props.authCerts">
 | 
			
		||||
        <el-select default-first-option value-key="name" style="width: 100%" v-model="selectAuthCert" size="small">
 | 
			
		||||
            <el-option v-for="item in props.authCerts" :key="item.name" :label="item.username" :value="item">
 | 
			
		||||
                {{ item.username }}
 | 
			
		||||
                <el-divider direction="vertical" border-style="dashed" />
 | 
			
		||||
                <EnumTag :value="item.type" :enums="AuthCertTypeEnum" />
 | 
			
		||||
                <el-divider direction="vertical" border-style="dashed" />
 | 
			
		||||
                <EnumTag :value="item.ciphertextType" :enums="AuthCertCiphertextTypeEnum" />
 | 
			
		||||
            </el-option>
 | 
			
		||||
        </el-select>
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import EnumTag from '@/components/enumtag/EnumTag.vue';
 | 
			
		||||
import { AuthCertTypeEnum, AuthCertCiphertextTypeEnum } from '../tag/enums';
 | 
			
		||||
const props = defineProps({
 | 
			
		||||
    authCerts: {
 | 
			
		||||
        type: [Array<any>],
 | 
			
		||||
        required: true,
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
const selectAuthCert = defineModel('selectAuthCert');
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss"></style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user