mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-23 23:35:06 +08:00
给所有组件添加name属性预防未知bug!!!
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<Dialog title="详情" v-model="dialogVisible">
|
||||
<Descriptions :schema="allSchemas.detailSchema" :data="detailData" />
|
||||
<Dialog v-model="dialogVisible" title="详情">
|
||||
<Descriptions :data="detailData" :schema="allSchemas.detailSchema" />
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" name="SystemMailAccountDetail" setup>
|
||||
import * as MailAccountApi from '@/api/system/mail/account'
|
||||
import { allSchemas } from './account.data'
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
<template>
|
||||
<Dialog :title="dialogTitle" v-model="dialogVisible">
|
||||
<Form ref="formRef" :schema="allSchemas.formSchema" :rules="rules" v-loading="formLoading" />
|
||||
<Dialog v-model="dialogVisible" :title="dialogTitle">
|
||||
<Form ref="formRef" v-loading="formLoading" :rules="rules" :schema="allSchemas.formSchema" />
|
||||
<template #footer>
|
||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" name="SystemMailAccountForm" setup>
|
||||
import * as MailAccountApi from '@/api/system/mail/account'
|
||||
import { rules, allSchemas } from './account.data'
|
||||
import { allSchemas, rules } from './account.data'
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<Dialog title="详情" v-model="dialogVisible" :scroll="true" :max-height="500">
|
||||
<Descriptions :schema="allSchemas.detailSchema" :data="detailData">
|
||||
<Dialog v-model="dialogVisible" :max-height="500" :scroll="true" title="详情">
|
||||
<Descriptions :data="detailData" :schema="allSchemas.detailSchema">
|
||||
<!-- 展示 HTML 内容 -->
|
||||
<template #templateContent="{ row }">
|
||||
<div v-html="row.templateContent"></div>
|
||||
@ -8,7 +8,7 @@
|
||||
</Descriptions>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" name="SystemMailLogDetail" setup>
|
||||
import * as MailLogApi from '@/api/system/mail/log'
|
||||
import { allSchemas } from './log.data'
|
||||
|
||||
|
@ -1,21 +1,22 @@
|
||||
<template>
|
||||
<Dialog
|
||||
:title="dialogTitle"
|
||||
v-model="dialogVisible"
|
||||
:scroll="true"
|
||||
:width="800"
|
||||
:max-height="500"
|
||||
:scroll="true"
|
||||
:title="dialogTitle"
|
||||
:width="800"
|
||||
>
|
||||
<Form ref="formRef" :schema="allSchemas.formSchema" :rules="rules" v-loading="formLoading" />
|
||||
<Form ref="formRef" v-loading="formLoading" :rules="rules" :schema="allSchemas.formSchema" />
|
||||
<template #footer>
|
||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" name="SystemMailTemplateForm" setup>
|
||||
import * as MailTemplateApi from '@/api/system/mail/template'
|
||||
import { allSchemas, rules } from './template.data'
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<Dialog title="测试" v-model="dialogVisible">
|
||||
<Dialog v-model="dialogVisible" title="测试">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
v-loading="formLoading"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-width="120px"
|
||||
v-loading="formLoading"
|
||||
>
|
||||
<el-form-item label="模板内容" prop="content">
|
||||
<Editor :model-value="formData.content" readonly height="150px" />
|
||||
<Editor :model-value="formData.content" height="150px" readonly />
|
||||
</el-form-item>
|
||||
<el-form-item label="收件邮箱" prop="mail">
|
||||
<el-input v-model="formData.mail" placeholder="请输入收件邮箱" />
|
||||
@ -26,13 +26,14 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
<script lang="ts" name="SystemMailTemplateSendForm" setup>
|
||||
import * as MailTemplateApi from '@/api/system/mail/template'
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
|
Reference in New Issue
Block a user