|
@@ -2,7 +2,7 @@
|
|
|
<BasicModal
|
|
|
v-bind="$attrs"
|
|
|
@register="register"
|
|
|
- title="新增设备"
|
|
|
+ :title="t('routes.corporation.businessAuth')"
|
|
|
cancelText="拒绝"
|
|
|
okText="通过"
|
|
|
@cancel="closeModal"
|
|
@@ -22,7 +22,7 @@
|
|
|
<template #link="{ model, field }">
|
|
|
<a :href="model[field]" target="_blank">{{ model[field] }}</a>
|
|
|
</template>
|
|
|
- <template #iamge="{ model, field }">
|
|
|
+ <template #image="{ model, field }">
|
|
|
<div v-if="model[field]">
|
|
|
<TableImg :size="200" :simpleShow="true" :imgList="[model[field]]" />
|
|
|
</div>
|
|
@@ -38,6 +38,8 @@
|
|
|
import { BasicForm, FormSchema, useForm } from '/@/components/Form/index';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { checkDevice, selectCompanyById, auditCompany } from '/@/api/corporation/modal';
|
|
|
+ import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
+
|
|
|
export default defineComponent({
|
|
|
components: { BasicModal, BasicForm, TableImg },
|
|
|
props: {
|
|
@@ -46,6 +48,7 @@
|
|
|
emits: ['register'],
|
|
|
setup(props) {
|
|
|
const modelRef = ref({});
|
|
|
+ const { t } = useI18n();
|
|
|
const num = ref(0);
|
|
|
const { createMessage } = useMessage();
|
|
|
const { error, success } = createMessage; //success,
|
|
@@ -117,13 +120,13 @@
|
|
|
{
|
|
|
field: 'logo',
|
|
|
label: '企业LOGO',
|
|
|
- slot: 'iamge',
|
|
|
+ slot: 'image',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
{
|
|
|
field: 'qualification',
|
|
|
label: '企业资质',
|
|
|
- slot: 'iamge',
|
|
|
+ slot: 'image',
|
|
|
component: 'Input',
|
|
|
},
|
|
|
];
|
|
@@ -225,6 +228,7 @@
|
|
|
num,
|
|
|
closeModal,
|
|
|
errorMsg: error,
|
|
|
+ t,
|
|
|
};
|
|
|
},
|
|
|
});
|