li.shaoyi 7 月之前
父節點
當前提交
702f59fb31

+ 5 - 3
src/packages/pc/components/base/operation/index.vue

@@ -1,10 +1,10 @@
 <template>
     <div class="app-operation">
         <template v-for="(item, index) in dataList" :key="index">
-            <el-button :class="item.className" :size="size" :icon="item[defaultProps.icon]" :circle="circle" plain
-                @click="onClick(item[defaultProps.value])">
+            <el-button :class="item.className" :title="t('routes.' + item[defaultProps.value])" :size="size"
+                :icon="item[defaultProps.icon]" :circle="circle" plain @click="onClick(item[defaultProps.value])">
                 <slot :item="item" v-if="!circle">
-                    {{ $t('routes.'+item[defaultProps.value])  }}
+                    {{ t('routes.' + item[defaultProps.value]) }}
                 </slot>
             </el-button>
         </template>
@@ -13,6 +13,7 @@
 
 <script lang="ts" setup>
 import { PropType, computed } from 'vue'
+import { i18n } from '@/stores'
 
 const props = defineProps({
     dataList: {
@@ -37,6 +38,7 @@ const props = defineProps({
 })
 
 const emit = defineEmits(['click'])
+const t = i18n.global.t
 
 const defaultProps = computed(() => {
     const { label = 'title', value = 'resourceCode', icon = 'icon' } = props.props ?? {}

+ 1 - 1
src/packages/pc/router/index.ts

@@ -33,7 +33,7 @@ const routes: Array<RouteRecordRaw> = [
         name: 'login',
         component: () => import('../views/auth/login/index.vue'),
         meta: {
-            title: '登',
+            title: '登',
             keepAlive: false
         },
     },

+ 9 - 2
src/packages/pc/views/investor/manage/user/components/details/view.vue

@@ -196,8 +196,15 @@
             </template>
             <!-- 法人授权书 -->
             <template #otherUrl="{ value }">
-                <el-link type="primary" :href="value" target="_blank" v-if="value">下载</el-link>
-                <span v-else>{{ handleNoneValue() }}</span>
+                <p>
+                    <el-link type="primary" :href="value" target="_blank" v-if="value">下载</el-link>
+                    <span v-else>{{ handleNoneValue() }}</span>
+                </p>
+                <p class="g-red" v-if="newData && newData.userinfoDetailVo.otherUrl !== value">
+                    <el-link type="danger" :href="newData.userinfoDetailVo.otherUrl" target="_blank"
+                        v-if="newData.userinfoDetailVo.otherUrl">下载</el-link>
+                    <span v-else>{{ handleNoneValue() }}</span>
+                </p>
             </template>
         </app-table-details>
         <template #footer>