|
@@ -20,7 +20,7 @@
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
type="primary"
|
|
type="primary"
|
|
- @click="openModal('update', row.id)"
|
|
|
|
|
|
+ @click="openModal(row.id)"
|
|
v-hasPermi="['system:mail-log:query']"
|
|
v-hasPermi="['system:mail-log:query']"
|
|
>
|
|
>
|
|
详情
|
|
详情
|
|
@@ -30,26 +30,26 @@
|
|
</content-wrap>
|
|
</content-wrap>
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
- <!-- <mail-account-form ref="modalRef" @success="getList" />-->
|
|
|
|
|
|
+ <mail-log-detail ref="modalRef" @success="getList" />
|
|
</template>
|
|
</template>
|
|
<script setup lang="ts" name="MailLog">
|
|
<script setup lang="ts" name="MailLog">
|
|
import { allSchemas } from './log.data'
|
|
import { allSchemas } from './log.data'
|
|
import * as MailLogApi from '@/api/system/mail/log'
|
|
import * as MailLogApi from '@/api/system/mail/log'
|
|
-// import MailAccountForm from './form.vue'
|
|
|
|
|
|
+import MailLogDetail from './detail.vue'
|
|
|
|
|
|
// tableObject:表格的属性对象,可获得分页大小、条数等属性
|
|
// tableObject:表格的属性对象,可获得分页大小、条数等属性
|
|
// tableMethods:表格的操作对象,可进行获得分页、删除记录等操作
|
|
// tableMethods:表格的操作对象,可进行获得分页、删除记录等操作
|
|
// 详细可见:https://kailong110120130.gitee.io/vue-element-plus-admin-doc/components/table.html#usetable
|
|
// 详细可见:https://kailong110120130.gitee.io/vue-element-plus-admin-doc/components/table.html#usetable
|
|
const { tableObject, tableMethods } = useTable({
|
|
const { tableObject, tableMethods } = useTable({
|
|
- getListApi: MailLogApi.getMailLogPageApi // 分页接口
|
|
|
|
|
|
+ getListApi: MailLogApi.getMailLogPage // 分页接口
|
|
})
|
|
})
|
|
// 获得表格的各种操作
|
|
// 获得表格的各种操作
|
|
const { getList, setSearchParams } = tableMethods
|
|
const { getList, setSearchParams } = tableMethods
|
|
|
|
|
|
/** 添加/修改操作 */
|
|
/** 添加/修改操作 */
|
|
const modalRef = ref()
|
|
const modalRef = ref()
|
|
-const openModal = (type: string, id?: number) => {
|
|
|
|
- modalRef.value.openModal(type, id)
|
|
|
|
|
|
+const openModal = (id: number) => {
|
|
|
|
+ modalRef.value.openModal(id)
|
|
}
|
|
}
|
|
|
|
|
|
/** 初始化 **/
|
|
/** 初始化 **/
|