Compare commits
2 Commits
9d5896dc86
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 90aaeef018 | |||
| 4f9a0e7f91 |
@@ -1,5 +1,5 @@
|
|||||||
VITE_APP_NAME=后台管理(开发环境)
|
VITE_APP_NAME=后台管理(开发环境)
|
||||||
VITE_API_URL=http://127.0.0.1:9200/api
|
#VITE_API_URL=http://127.0.0.1:9200/api
|
||||||
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
|
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditBreachOfTrust {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditCaseFiling {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditCompany {
|
|||||||
matchName?: string;
|
matchName?: string;
|
||||||
// 统一社会信用代码
|
// 统一社会信用代码
|
||||||
code?: string;
|
code?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 类型
|
// 类型
|
||||||
type?: number;
|
type?: number;
|
||||||
// 上级id, 0是顶级
|
// 上级id, 0是顶级
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ export interface CreditCompetitor {
|
|||||||
industry?: string;
|
industry?: string;
|
||||||
// 所属省份
|
// 所属省份
|
||||||
province?: string;
|
province?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ export interface CreditCourtAnnouncement {
|
|||||||
dataType?: string;
|
dataType?: string;
|
||||||
// 原告/上诉人
|
// 原告/上诉人
|
||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
@TableField("defendant Appellee")
|
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
defendant appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditCourtSession {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export interface CreditCustomer {
|
|||||||
publicDate?: string;
|
publicDate?: string;
|
||||||
// 数据来源
|
// 数据来源
|
||||||
dataSource?: string;
|
dataSource?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ export interface CreditDeliveryNotice {
|
|||||||
courtName?: string;
|
courtName?: string;
|
||||||
// 数据状态
|
// 数据状态
|
||||||
dataStatus?: string;
|
dataStatus?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ export interface CreditExternal {
|
|||||||
investmentCount?: number;
|
investmentCount?: number;
|
||||||
// 关联产品/机构
|
// 关联产品/机构
|
||||||
relatedProductsInstitutions?: string;
|
relatedProductsInstitutions?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditFinalVersion {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditGqdj {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditJudgmentDebtor {
|
|||||||
name?: string;
|
name?: string;
|
||||||
// 证件号/组织机构代码
|
// 证件号/组织机构代码
|
||||||
code?: string;
|
code?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 立案日期
|
// 立案日期
|
||||||
occurrenceTime?: string;
|
occurrenceTime?: string;
|
||||||
// 执行标的(元)
|
// 执行标的(元)
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditJudicialDocument {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ export interface CreditJudiciary {
|
|||||||
name?: string;
|
name?: string;
|
||||||
// 案号
|
// 案号
|
||||||
code?: string;
|
code?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 类型, 0普通用户, 1招投标
|
// 类型, 0普通用户, 1招投标
|
||||||
type?: number;
|
type?: number;
|
||||||
// 案由
|
// 案由
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditMediation {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ export interface CreditProject {
|
|||||||
name?: string;
|
name?: string;
|
||||||
// 唯一标识
|
// 唯一标识
|
||||||
code?: string;
|
code?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 类型, 0普通用户, 1招投标
|
// 类型, 0普通用户, 1招投标
|
||||||
type?: number;
|
type?: number;
|
||||||
// 企业角色
|
// 企业角色
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ export interface CreditRiskRelation {
|
|||||||
associatedRelation?: string;
|
associatedRelation?: string;
|
||||||
// 风险关系
|
// 风险关系
|
||||||
riskRelation?: string;
|
riskRelation?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export interface CreditSupplier {
|
|||||||
publicDate?: string;
|
publicDate?: string;
|
||||||
// 数据来源
|
// 数据来源
|
||||||
dataSource?: string;
|
dataSource?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 备注
|
// 备注
|
||||||
comments?: string;
|
comments?: string;
|
||||||
// 是否推荐
|
// 是否推荐
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ export interface CreditUser {
|
|||||||
name?: string;
|
name?: string;
|
||||||
// 唯一标识
|
// 唯一标识
|
||||||
code?: string;
|
code?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 类型, 0普通用户, 1招投标
|
// 类型, 0普通用户, 1招投标
|
||||||
type?: number;
|
type?: number;
|
||||||
// 企业角色
|
// 企业角色
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface CreditXgxf {
|
|||||||
plaintiffAppellant?: string;
|
plaintiffAppellant?: string;
|
||||||
// 被告/被上诉人
|
// 被告/被上诉人
|
||||||
appellee?: string;
|
appellee?: string;
|
||||||
|
// 链接地址
|
||||||
|
url?: string;
|
||||||
// 其他当事人/第三人
|
// 其他当事人/第三人
|
||||||
otherPartiesThirdParty?: string;
|
otherPartiesThirdParty?: string;
|
||||||
// 发生时间
|
// 发生时间
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import request from '@/utils/request';
|
|||||||
import type { ApiResult, PageResult } from '@/api';
|
import type { ApiResult, PageResult } from '@/api';
|
||||||
import type { Payment, PaymentParam } from './model';
|
import type { Payment, PaymentParam } from './model';
|
||||||
import { SERVER_API_URL } from '@/config/setting';
|
import { SERVER_API_URL } from '@/config/setting';
|
||||||
import type { Order } from '@/api/shop/order/model';
|
import type { ShopOrder } from '@/api/shop/shopOrder/model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询支付方式
|
* 分页查询支付方式
|
||||||
@@ -50,6 +50,34 @@ export async function addPayment(data: Payment) {
|
|||||||
return Promise.reject(new Error(res.data.message));
|
return Promise.reject(new Error(res.data.message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 统一下单订单接口
|
||||||
|
*/
|
||||||
|
export async function create(data: Payment) {
|
||||||
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
|
SERVER_API_URL + '/system/payment/create',
|
||||||
|
data
|
||||||
|
);
|
||||||
|
if (res.data.code === 0) {
|
||||||
|
return res.data.message;
|
||||||
|
}
|
||||||
|
return Promise.reject(new Error(res.data.message));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 统一下单订单接口(包含订单信息)
|
||||||
|
*/
|
||||||
|
export async function createWithOrder(data: Payment) {
|
||||||
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
|
SERVER_API_URL + '/system/payment/create-with-order',
|
||||||
|
data
|
||||||
|
);
|
||||||
|
if (res.data.code === 0) {
|
||||||
|
return res.data.message;
|
||||||
|
}
|
||||||
|
return Promise.reject(new Error(res.data.message));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改支付方式
|
* 修改支付方式
|
||||||
*/
|
*/
|
||||||
@@ -109,7 +137,7 @@ export async function getPayment(id: number) {
|
|||||||
/**
|
/**
|
||||||
* 生成支付二维码(微信native)
|
* 生成支付二维码(微信native)
|
||||||
*/
|
*/
|
||||||
export async function getNativeCode(data: Order) {
|
export async function getNativeCode(data: ShopOrder) {
|
||||||
const res = await request.post<ApiResult<unknown>>(
|
const res = await request.post<ApiResult<unknown>>(
|
||||||
SERVER_API_URL + '/system/wx-native-pay/codeUrl',
|
SERVER_API_URL + '/system/wx-native-pay/codeUrl',
|
||||||
data
|
data
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { message } from 'ant-design-vue/es';
|
||||||
import { CloudUploadOutlined } from '@ant-design/icons-vue';
|
import { CloudUploadOutlined } from '@ant-design/icons-vue';
|
||||||
import {importArticles} from "@/api/cms/cmsArticle";
|
import { importArticles } from '@/api/cms/cmsArticle';
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'done'): void;
|
(e: 'done'): void;
|
||||||
|
|||||||
80
src/views/cms/cmsNavigation/components/Import.vue
Normal file
80
src/views/cms/cmsNavigation/components/Import.vue
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
<!-- 导航导入弹窗 -->
|
||||||
|
<template>
|
||||||
|
<ele-modal
|
||||||
|
:width="520"
|
||||||
|
:footer="null"
|
||||||
|
title="导入备份"
|
||||||
|
:visible="visible"
|
||||||
|
@update:visible="updateVisible"
|
||||||
|
>
|
||||||
|
<a-spin :spinning="loading">
|
||||||
|
<a-upload-dragger
|
||||||
|
accept=".xls,.xlsx"
|
||||||
|
:show-upload-list="false"
|
||||||
|
:customRequest="doUpload"
|
||||||
|
style="padding: 24px 0; margin-bottom: 16px"
|
||||||
|
>
|
||||||
|
<p class="ant-upload-drag-icon">
|
||||||
|
<cloud-upload-outlined />
|
||||||
|
</p>
|
||||||
|
<p class="ant-upload-hint">将文件拖到此处,或点击上传</p>
|
||||||
|
</a-upload-dragger>
|
||||||
|
</a-spin>
|
||||||
|
</ele-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import { message } from 'ant-design-vue/es';
|
||||||
|
import { CloudUploadOutlined } from '@ant-design/icons-vue';
|
||||||
|
import { importCmsNavigation } from '@/api/cms/cmsNavigation';
|
||||||
|
|
||||||
|
const emit = defineEmits<{
|
||||||
|
(e: 'done'): void;
|
||||||
|
(e: 'update:visible', visible: boolean): void;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
defineProps<{
|
||||||
|
// 是否打开弹窗
|
||||||
|
visible: boolean;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
// 导入请求状态
|
||||||
|
const loading = ref(false);
|
||||||
|
|
||||||
|
/* 上传 */
|
||||||
|
const doUpload = ({ file }) => {
|
||||||
|
if (
|
||||||
|
![
|
||||||
|
'application/vnd.ms-excel',
|
||||||
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|
].includes(file.type)
|
||||||
|
) {
|
||||||
|
message.error('只能选择 excel 文件');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (file.size / 1024 / 1024 > 10) {
|
||||||
|
message.error('大小不能超过 10MB');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
loading.value = true;
|
||||||
|
importCmsNavigation(file)
|
||||||
|
.then((msg) => {
|
||||||
|
loading.value = false;
|
||||||
|
message.success(msg);
|
||||||
|
updateVisible(false);
|
||||||
|
emit('done');
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
loading.value = false;
|
||||||
|
message.error(e.message);
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 更新 visible */
|
||||||
|
const updateVisible = (value: boolean) => {
|
||||||
|
emit('update:visible', value);
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
@@ -3,22 +3,32 @@
|
|||||||
<a-space :size="10" style="flex-wrap: wrap">
|
<a-space :size="10" style="flex-wrap: wrap">
|
||||||
<a-button type="primary" class="ele-btn-icon" @click="emit('add')">
|
<a-button type="primary" class="ele-btn-icon" @click="emit('add')">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<plus-outlined/>
|
<plus-outlined />
|
||||||
</template>
|
</template>
|
||||||
<span>新建</span>
|
<span>新建</span>
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="dashed" :disabled="!hasRole('superAdmin')" @click="handleExport">备份</a-button>
|
<a-button
|
||||||
<a-button type="dashed" :disabled="!hasRole('superAdmin')" @click="openImport">恢复</a-button>
|
type="dashed"
|
||||||
|
:disabled="!hasRole('superAdmin')"
|
||||||
|
@click="handleExport"
|
||||||
|
>备份</a-button
|
||||||
|
>
|
||||||
|
<a-button
|
||||||
|
type="dashed"
|
||||||
|
:disabled="!hasRole('superAdmin')"
|
||||||
|
@click="openImport"
|
||||||
|
>恢复</a-button
|
||||||
|
>
|
||||||
<a-button type="dashed" @click="openUrl('/website/model')"
|
<a-button type="dashed" @click="openUrl('/website/model')"
|
||||||
>模型管理
|
>模型管理
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-divider type="vertical"/>
|
<a-divider type="vertical" />
|
||||||
<a-radio-group v-model:value="position" @change="reload">
|
<a-radio-group v-model:value="position" @change="reload">
|
||||||
<a-radio-button :value="1">顶部</a-radio-button>
|
<a-radio-button :value="1">顶部</a-radio-button>
|
||||||
<a-radio-button :value="2">底部</a-radio-button>
|
<a-radio-button :value="2">底部</a-radio-button>
|
||||||
<a-radio-button :value="0">不限</a-radio-button>
|
<a-radio-button :value="0">不限</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
<a-divider type="vertical"/>
|
<a-divider type="vertical" />
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="where.model"
|
v-model:value="where.model"
|
||||||
style="width: 150px"
|
style="width: 150px"
|
||||||
@@ -42,98 +52,114 @@
|
|||||||
/>
|
/>
|
||||||
</a-space>
|
</a-space>
|
||||||
<!-- 导入弹窗 -->
|
<!-- 导入弹窗 -->
|
||||||
<import v-model:visible="showImport" @done="reload"/>
|
<import v-model:visible="showImport" @done="reload" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {PlusOutlined} from '@ant-design/icons-vue';
|
import { PlusOutlined } from '@ant-design/icons-vue';
|
||||||
import type {GradeParam} from '@/api/user/grade/model';
|
import type { GradeParam } from '@/api/user/grade/model';
|
||||||
import {watch, ref} from 'vue';
|
import { watch, ref } from 'vue';
|
||||||
import {openUrl} from "@/utils/common";
|
import { openUrl } from '@/utils/common';
|
||||||
import {hasRole} from "@/utils/permission";
|
import { hasRole } from '@/utils/permission';
|
||||||
import {utils, writeFile} from 'xlsx';
|
import { utils, writeFile } from 'xlsx';
|
||||||
import {message} from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
|
import { listCmsNavigation } from '@/api/cms/cmsNavigation';
|
||||||
import {getTenantId} from "@/utils/domain";
|
import { getTenantId } from '@/utils/domain';
|
||||||
import Import from "./Import.vue";
|
import Import from './Import.vue';
|
||||||
|
|
||||||
// 是否显示导入弹窗
|
// 是否显示导入弹窗
|
||||||
const showImport = ref(false);
|
const showImport = ref(false);
|
||||||
const searchText = ref('');
|
const searchText = ref('');
|
||||||
|
// 导出请求状态
|
||||||
|
const loading = ref(false);
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
// 选中的角色
|
// 选中的角色
|
||||||
selection?: [];
|
selection?: [];
|
||||||
}>(),
|
}>(),
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'search', where?: GradeParam): void;
|
(e: 'search', where?: GradeParam): void;
|
||||||
(e: 'add'): void;
|
(e: 'add'): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.selection,
|
() => props.selection,
|
||||||
() => {
|
() => {}
|
||||||
}
|
);
|
||||||
);
|
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const where = ref({
|
const where = ref({
|
||||||
keywords: '',
|
keywords: '',
|
||||||
model: '',
|
model: '',
|
||||||
position: 0
|
position: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
const position = ref(0);
|
const position = ref(0);
|
||||||
|
|
||||||
const reload = () => {
|
const reload = () => {
|
||||||
// 更新搜索关键词
|
// 更新搜索关键词
|
||||||
where.value.keywords = searchText.value;
|
where.value.keywords = searchText.value;
|
||||||
emit('search', where.value);
|
emit('search', where.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 打开编辑弹窗 */
|
/* 打开编辑弹窗 */
|
||||||
const openImport = () => {
|
const openImport = () => {
|
||||||
showImport.value = true;
|
showImport.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 导出
|
// 导出
|
||||||
const handleExport = async () => {
|
const handleExport = async () => {
|
||||||
const array: (string | number)[][] = [
|
if (loading.value) {
|
||||||
[
|
return;
|
||||||
'上级id',
|
}
|
||||||
'菜单名称',
|
|
||||||
'模型',
|
|
||||||
'标识',
|
|
||||||
'菜单路由地址',
|
|
||||||
'菜单组件地址',
|
|
||||||
'打开位置',
|
|
||||||
'菜单图标',
|
|
||||||
'banner图片',
|
|
||||||
'图标颜色',
|
|
||||||
'是否隐藏',
|
|
||||||
'可见类型',
|
|
||||||
'访问密码',
|
|
||||||
'位置',
|
|
||||||
'仅在顶部显示',
|
|
||||||
'仅在底部显示',
|
|
||||||
'菜单侧栏选中的path',
|
|
||||||
'其它路由元信息',
|
|
||||||
'css样式',
|
|
||||||
'是否推荐',
|
|
||||||
'排序',
|
|
||||||
'备注',
|
|
||||||
'状态'
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
// 按搜索结果导出
|
loading.value = true;
|
||||||
await listCmsNavigation(where.value)
|
const array: (string | number)[][] = [
|
||||||
.then((list) => {
|
[
|
||||||
list?.forEach((d) => {
|
'上级id',
|
||||||
|
'菜单名称',
|
||||||
|
'模型',
|
||||||
|
'标识',
|
||||||
|
'菜单路由地址',
|
||||||
|
'菜单组件地址',
|
||||||
|
'打开位置',
|
||||||
|
'菜单图标',
|
||||||
|
'banner图片',
|
||||||
|
'图标颜色',
|
||||||
|
'是否隐藏',
|
||||||
|
'可见类型',
|
||||||
|
'访问密码',
|
||||||
|
'位置',
|
||||||
|
'仅在顶部显示',
|
||||||
|
'仅在底部显示',
|
||||||
|
'菜单侧栏选中的path',
|
||||||
|
'其它路由元信息',
|
||||||
|
'css样式',
|
||||||
|
'是否推荐',
|
||||||
|
'排序',
|
||||||
|
'备注',
|
||||||
|
'状态'
|
||||||
|
]
|
||||||
|
];
|
||||||
|
|
||||||
|
// 按搜索结果导出
|
||||||
|
message.loading('正在准备导出数据...', 0);
|
||||||
|
|
||||||
|
try {
|
||||||
|
const list = await listCmsNavigation(where.value);
|
||||||
|
|
||||||
|
if (!list || list.length === 0) {
|
||||||
|
message.destroy();
|
||||||
|
message.warning('没有数据可以导出');
|
||||||
|
loading.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
list.forEach((d) => {
|
||||||
array.push([
|
array.push([
|
||||||
`${d.parentId || ''}`,
|
`${d.parentId || ''}`,
|
||||||
`${d.title || ''}`,
|
`${d.title || ''}`,
|
||||||
@@ -160,6 +186,7 @@ const handleExport = async () => {
|
|||||||
`${d.status || 0}`
|
`${d.status || 0}`
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
const sheetName = `bak_navigation_${getTenantId()}`;
|
const sheetName = `bak_navigation_${getTenantId()}`;
|
||||||
const workbook = {
|
const workbook = {
|
||||||
SheetNames: [sheetName],
|
SheetNames: [sheetName],
|
||||||
@@ -167,18 +194,47 @@ const handleExport = async () => {
|
|||||||
};
|
};
|
||||||
const sheet = utils.aoa_to_sheet(array);
|
const sheet = utils.aoa_to_sheet(array);
|
||||||
workbook.Sheets[sheetName] = sheet;
|
workbook.Sheets[sheetName] = sheet;
|
||||||
|
|
||||||
// 设置列宽
|
// 设置列宽
|
||||||
sheet['!cols'] = [];
|
sheet['!cols'] = [
|
||||||
message.loading('正在导出...');
|
{ wch: 10 }, // 上级id
|
||||||
|
{ wch: 20 }, // 菜单名称
|
||||||
|
{ wch: 10 }, // 模型
|
||||||
|
{ wch: 20 }, // 标识
|
||||||
|
{ wch: 30 }, // 菜单路由地址
|
||||||
|
{ wch: 30 }, // 菜单组件地址
|
||||||
|
{ wch: 10 }, // 打开位置
|
||||||
|
{ wch: 18 }, // 菜单图标
|
||||||
|
{ wch: 24 }, // banner图片
|
||||||
|
{ wch: 12 }, // 图标颜色
|
||||||
|
{ wch: 10 }, // 是否隐藏
|
||||||
|
{ wch: 10 }, // 可见类型
|
||||||
|
{ wch: 16 }, // 访问密码
|
||||||
|
{ wch: 10 }, // 位置
|
||||||
|
{ wch: 12 }, // 仅在顶部显示
|
||||||
|
{ wch: 12 }, // 仅在底部显示
|
||||||
|
{ wch: 26 }, // 菜单侧栏选中的path
|
||||||
|
{ wch: 20 }, // 其它路由元信息
|
||||||
|
{ wch: 20 }, // css样式
|
||||||
|
{ wch: 10 }, // 是否推荐
|
||||||
|
{ wch: 10 }, // 排序
|
||||||
|
{ wch: 20 }, // 备注
|
||||||
|
{ wch: 10 } // 状态
|
||||||
|
];
|
||||||
|
|
||||||
|
message.destroy();
|
||||||
|
message.loading('正在生成Excel文件...', 0);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
writeFile(
|
writeFile(workbook, `${sheetName}.xlsx`);
|
||||||
workbook,
|
loading.value = false;
|
||||||
`${sheetName}.xlsx`
|
message.destroy();
|
||||||
);
|
message.success(`成功导出 ${list.length} 条记录`);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
})
|
} catch (e: any) {
|
||||||
.catch((msg) => {
|
loading.value = false;
|
||||||
message.error(msg);
|
message.destroy();
|
||||||
});
|
message.error(e.message || '导出失败,请重试');
|
||||||
};
|
}
|
||||||
</script>
|
};
|
||||||
|
</script>
|
||||||
|
|||||||
@@ -25,6 +25,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,54 +1,66 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'name'">
|
||||||
<template v-if="column.key === 'image'">
|
<template v-if="record.url">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-else>
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
{{ record.name }}
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'status'">
|
||||||
</a-card>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.key === 'action'">
|
||||||
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditCaseFilingEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditCaseFilingEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditCaseFilingImport v-model:visible="showImport" @done="reload" />
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditCaseFilingImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -182,8 +194,7 @@
|
|||||||
width: 180,
|
width: 180,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ text }) =>
|
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||||
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,54 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditCompetitorEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditCompetitorEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditCompetitorImport v-model:visible="showImport" @done="reload" />
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditCompetitorImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -171,8 +175,7 @@
|
|||||||
width: 180,
|
width: 180,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ text }) =>
|
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||||
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@@ -1,57 +1,61 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditCourtAnnouncementEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditCourtAnnouncementEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditCourtAnnouncementImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditCourtAnnouncementImport
|
||||||
|
v-model:visible="showImport"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -185,8 +189,7 @@
|
|||||||
width: 180,
|
width: 180,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ text }) =>
|
customRender: ({ text }) => toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
||||||
toDateString(text, 'yyyy-MM-dd HH:mm:ss')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,57 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditDeliveryNoticeEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditDeliveryNoticeEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditDeliveryNoticeImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditDeliveryNoticeImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,57 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditFinalVersionEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditFinalVersionEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditFinalVersionImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditFinalVersionImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -128,7 +129,7 @@
|
|||||||
title: 'ID',
|
title: 'ID',
|
||||||
dataIndex: 'id',
|
dataIndex: 'id',
|
||||||
key: 'id',
|
key: 'id',
|
||||||
width: 90,
|
width: 90
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '数据类型',
|
title: '数据类型',
|
||||||
|
|||||||
@@ -1,54 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditGqdjEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditGqdjEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||||
<!-- 导入弹窗 -->
|
<!-- 导入弹窗 -->
|
||||||
<CreditGqdjImport v-model:visible="showImport" @done="reload" />
|
<CreditGqdjImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +1,66 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'name'">
|
||||||
<template v-if="column.key === 'image'">
|
<template v-if="record.url">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-else>
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
{{ record.name }}
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'status'">
|
||||||
</a-card>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.key === 'action'">
|
||||||
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditJudgmentDebtorEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditJudgmentDebtorEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditJudgmentDebtorImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditJudgmentDebtorImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -166,12 +175,12 @@
|
|||||||
key: 'courtName',
|
key: 'courtName',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '数据状态',
|
// title: '数据状态',
|
||||||
dataIndex: 'dataStatus',
|
// dataIndex: 'dataStatus',
|
||||||
key: 'dataStatus',
|
// key: 'dataStatus',
|
||||||
ellipsis: true
|
// ellipsis: true
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
|
|||||||
@@ -1,57 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditJudicialDocumentEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditJudicialDocumentEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditJudicialDocumentImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditJudicialDocumentImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,54 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditMediationEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditMediationEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditMediationImport v-model:visible="showImport" @done="reload" />
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditMediationImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,54 +1,66 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'name'">
|
||||||
<template v-if="column.key === 'image'">
|
<template v-if="record.url">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-else>
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
{{ record.name }}
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'status'">
|
||||||
</a-card>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.key === 'action'">
|
||||||
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditProjectEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditProjectEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditProjectImport v-model:visible="showImport" @done="reload" />
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditProjectImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditRiskRelationEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditRiskRelationEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditRiskRelationImport
|
:data="current"
|
||||||
v-model:visible="showImport"
|
@done="reload"
|
||||||
@done="reload"
|
/>
|
||||||
/>
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditRiskRelationImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,54 +1,58 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditSupplierEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditSupplierEdit
|
||||||
<!-- 导入弹窗 -->
|
v-model:visible="showEdit"
|
||||||
<CreditSupplierImport v-model:visible="showImport" @done="reload" />
|
:data="current"
|
||||||
|
@done="reload"
|
||||||
|
/>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<CreditSupplierImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,14 @@
|
|||||||
<template v-if="column.key === 'image'">
|
<template v-if="column.key === 'image'">
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.key === 'name'">
|
||||||
|
<template v-if="record.url">
|
||||||
|
<a :href="record.url" target="_blank">{{ record.name }}</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ record.name }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
|
|||||||
@@ -1,54 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||||
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
<a-card :bordered="false" :body-style="{ padding: '16px' }">
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table"
|
||||||
>
|
>
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<search
|
<search
|
||||||
@search="reload"
|
@search="reload"
|
||||||
:selection="selection"
|
:selection="selection"
|
||||||
@add="openEdit"
|
@add="openEdit"
|
||||||
@remove="removeBatch"
|
@remove="removeBatch"
|
||||||
@batchMove="openMove"
|
@batchMove="openMove"
|
||||||
@importData="openImport"
|
@importData="openImport"
|
||||||
@exportData="exportData"
|
@exportData="exportData"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
<template #bodyCell="{ column, record }">
|
||||||
|
<template v-if="column.key === 'image'">
|
||||||
|
<a-image :src="record.image" :width="50" />
|
||||||
</template>
|
</template>
|
||||||
<template #bodyCell="{ column, record }">
|
<template v-if="column.key === 'status'">
|
||||||
<template v-if="column.key === 'image'">
|
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
||||||
<a-image :src="record.image" :width="50" />
|
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'status'">
|
|
||||||
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
|
|
||||||
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
|
|
||||||
</template>
|
|
||||||
<template v-if="column.key === 'action'">
|
|
||||||
<a-space>
|
|
||||||
<a @click="openEdit(record)">修改</a>
|
|
||||||
<a-divider type="vertical" />
|
|
||||||
<a-popconfirm
|
|
||||||
title="确定要删除此记录吗?"
|
|
||||||
@confirm="remove(record)"
|
|
||||||
>
|
|
||||||
<a class="ele-text-danger">删除</a>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
</ele-pro-table>
|
<template v-if="column.key === 'action'">
|
||||||
</a-card>
|
<a-space>
|
||||||
|
<a @click="openEdit(record)">修改</a>
|
||||||
|
<a-divider type="vertical" />
|
||||||
|
<a-popconfirm
|
||||||
|
title="确定要删除此记录吗?"
|
||||||
|
@confirm="remove(record)"
|
||||||
|
>
|
||||||
|
<a class="ele-text-danger">删除</a>
|
||||||
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</ele-pro-table>
|
||||||
|
</a-card>
|
||||||
|
|
||||||
<!-- 编辑弹窗 -->
|
<!-- 编辑弹窗 -->
|
||||||
<CreditXgxfEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
<CreditXgxfEdit v-model:visible="showEdit" :data="current" @done="reload" />
|
||||||
<!-- 导入弹窗 -->
|
<!-- 导入弹窗 -->
|
||||||
<CreditXgxfImport v-model:visible="showImport" @done="reload" />
|
<CreditXgxfImport v-model:visible="showImport" @done="reload" />
|
||||||
</a-page-header>
|
</a-page-header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -4,61 +4,60 @@
|
|||||||
<div class="text-4xl font-bold">广西医科大学第一附属医院</div>
|
<div class="text-4xl font-bold">广西医科大学第一附属医院</div>
|
||||||
<div class="text-2xl my-5">门诊医生一周内停替诊公布</div>
|
<div class="text-2xl my-5">门诊医生一周内停替诊公布</div>
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="stopTableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
|
:toolkit="[]"
|
||||||
|
:toolbar="false"
|
||||||
|
:page-size="pageSize"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table led-table"
|
||||||
|
@done="onStopDone"
|
||||||
/>
|
/>
|
||||||
<div class="text-2xl my-5">门诊医生当天剩余号源公布</div>
|
<div class="text-2xl my-5">门诊医生当天剩余号源公布</div>
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
ref="tableRef"
|
ref="numberTableRef"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:columns="columns2"
|
:columns="columns2"
|
||||||
:datasource="datasource2"
|
:datasource="datasource2"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
|
:toolkit="[]"
|
||||||
|
:toolbar="false"
|
||||||
|
:page-size="pageSize"
|
||||||
tool-class="ele-toolbar-form"
|
tool-class="ele-toolbar-form"
|
||||||
class="sys-org-table"
|
class="sys-org-table led-table"
|
||||||
|
@done="onNumberDone"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { createVNode, ref } from 'vue';
|
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
||||||
import { message, Modal } from 'ant-design-vue';
|
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
||||||
import type { EleProTable } from 'ele-admin-pro';
|
import type { EleProTable } from 'ele-admin-pro';
|
||||||
import { toTreeData } from 'ele-admin-pro';
|
|
||||||
import { useI18n } from 'vue-i18n';
|
|
||||||
import type {
|
import type {
|
||||||
DatasourceFunction,
|
DatasourceFunction,
|
||||||
ColumnItem
|
ColumnItem,
|
||||||
|
EleProTableDone
|
||||||
} from 'ele-admin-pro/es/ele-pro-table/types';
|
} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import { pageCmsAd, removeCmsAd, removeBatchCmsAd } from '@/api/cms/cmsAd';
|
|
||||||
import type { CmsAd, CmsAdParam } from '@/api/cms/cmsAd/model';
|
|
||||||
import { CmsNavigation } from '@/api/cms/cmsNavigation/model';
|
|
||||||
import { listCmsNavigation } from '@/api/cms/cmsNavigation';
|
|
||||||
import { numberReplace, stopReplace } from '@/api/led';
|
import { numberReplace, stopReplace } from '@/api/led';
|
||||||
|
|
||||||
|
const pageSize = 10;
|
||||||
|
const rotateIntervalMs = 10000;
|
||||||
|
|
||||||
// 表格实例
|
// 表格实例
|
||||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
const stopTableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
// 国际化
|
const numberTableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||||
const { locale } = useI18n();
|
|
||||||
// 表格选中数据
|
const stopPageCount = ref(1);
|
||||||
const selection = ref<CmsAd[]>([]);
|
const numberPageCount = ref(1);
|
||||||
// 当前编辑数据
|
const stopCurrPage = ref(1);
|
||||||
const current = ref<CmsAd | null>(null);
|
const numberCurrPage = ref(1);
|
||||||
// 是否显示编辑弹窗
|
|
||||||
const showEdit = ref(false);
|
let stopTimer: number | undefined;
|
||||||
// 是否显示批量移动弹窗
|
let numberTimer: number | undefined;
|
||||||
const showMove = ref(false);
|
|
||||||
// 栏目数据
|
|
||||||
const navigationList = ref<CmsNavigation[]>();
|
|
||||||
// 加载状态
|
|
||||||
const loading = ref(true);
|
|
||||||
|
|
||||||
// 表格数据源
|
// 表格数据源
|
||||||
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
|
||||||
@@ -191,107 +190,70 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 搜索 */
|
const onStopDone: EleProTableDone<any> = (_res, curr, count) => {
|
||||||
const reload = (where?: CmsAdParam) => {
|
stopCurrPage.value = curr;
|
||||||
selection.value = [];
|
stopPageCount.value = count || 1;
|
||||||
tableRef?.value?.reload({ where: where });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 打开编辑弹窗 */
|
const onNumberDone: EleProTableDone<any> = (_res, curr, count) => {
|
||||||
const openEdit = (row?: CmsAd) => {
|
numberCurrPage.value = curr;
|
||||||
current.value = row ?? null;
|
numberPageCount.value = count || 1;
|
||||||
showEdit.value = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 打开批量移动弹窗 */
|
const nextStopPage = () => {
|
||||||
const openMove = () => {
|
if (stopPageCount.value <= 1) return;
|
||||||
showMove.value = true;
|
stopCurrPage.value =
|
||||||
|
stopCurrPage.value >= stopPageCount.value ? 1 : stopCurrPage.value + 1;
|
||||||
|
stopTableRef.value?.reload({ page: stopCurrPage.value, limit: pageSize });
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 删除单个 */
|
const nextNumberPage = () => {
|
||||||
const remove = (row: CmsAd) => {
|
if (numberPageCount.value <= 1) return;
|
||||||
const hide = message.loading('请求中..', 0);
|
numberCurrPage.value =
|
||||||
removeCmsAd(row.adId)
|
numberCurrPage.value >= numberPageCount.value
|
||||||
.then((msg) => {
|
? 1
|
||||||
hide();
|
: numberCurrPage.value + 1;
|
||||||
message.success(msg);
|
numberTableRef.value?.reload({
|
||||||
reload();
|
page: numberCurrPage.value,
|
||||||
})
|
limit: pageSize
|
||||||
.catch((e) => {
|
|
||||||
hide();
|
|
||||||
message.error(e.message);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/* 批量删除 */
|
|
||||||
const removeBatch = () => {
|
|
||||||
if (!selection.value.length) {
|
|
||||||
message.error('请至少选择一条数据');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Modal.confirm({
|
|
||||||
title: '提示',
|
|
||||||
content: '确定要删除选中的记录吗?',
|
|
||||||
icon: createVNode(ExclamationCircleOutlined),
|
|
||||||
maskClosable: true,
|
|
||||||
onOk: () => {
|
|
||||||
const hide = message.loading('请求中..', 0);
|
|
||||||
removeBatchCmsAd(selection.value.map((d) => d.adId))
|
|
||||||
.then((msg) => {
|
|
||||||
hide();
|
|
||||||
message.success(msg);
|
|
||||||
reload();
|
|
||||||
})
|
|
||||||
.catch((e) => {
|
|
||||||
hide();
|
|
||||||
message.error(e.message);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 查询 */
|
|
||||||
const query = () => {
|
|
||||||
loading.value = true;
|
|
||||||
// 加载栏目数据
|
|
||||||
if (!navigationList.value) {
|
|
||||||
listCmsNavigation({}).then((res) => {
|
|
||||||
navigationList.value = toTreeData({
|
|
||||||
data: res?.map((d) => {
|
|
||||||
d.value = d.navigationId;
|
|
||||||
d.label = d.title;
|
|
||||||
if (!d.component) {
|
|
||||||
d.disabled = true;
|
|
||||||
}
|
|
||||||
return d;
|
|
||||||
}),
|
|
||||||
idField: 'navigationId',
|
|
||||||
parentIdField: 'parentId'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* 自定义行属性 */
|
/* 自定义行属性 */
|
||||||
const customRow = (record: CmsAd) => {
|
const customRow = (_record: any) => {
|
||||||
return {
|
return {
|
||||||
// 行点击事件
|
// 行点击事件
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
// console.log(record);
|
//
|
||||||
},
|
},
|
||||||
// 行双击事件
|
// 行双击事件
|
||||||
onDblclick: () => {
|
onDblclick: () => {
|
||||||
// openEdit(record);
|
//
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
query();
|
|
||||||
|
onMounted(() => {
|
||||||
|
stopTimer = window.setInterval(nextStopPage, rotateIntervalMs);
|
||||||
|
numberTimer = window.setInterval(nextNumberPage, rotateIntervalMs);
|
||||||
|
});
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
if (stopTimer) window.clearInterval(stopTimer);
|
||||||
|
if (numberTimer) window.clearInterval(numberTimer);
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'CmsAd'
|
name: 'LedIndex'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped></style>
|
<style lang="less" scoped>
|
||||||
|
.led-table {
|
||||||
|
:deep(.ant-pagination) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -14,161 +14,160 @@
|
|||||||
</a-space>
|
</a-space>
|
||||||
|
|
||||||
<!-- 导入弹窗 -->
|
<!-- 导入弹窗 -->
|
||||||
<import v-model:visible="showImport" @done="reload"/>
|
<import v-model:visible="showImport" @done="reload" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import { utils, writeFile } from 'xlsx';
|
import { utils, writeFile } from 'xlsx';
|
||||||
import { listMenus } from '@/api/system/menu';
|
import { listMenus } from '@/api/system/menu';
|
||||||
import type { Menu, MenuParam } from '@/api/system/menu/model';
|
import type { Menu, MenuParam } from '@/api/system/menu/model';
|
||||||
import useSearch from '@/utils/use-search';
|
import useSearch from '@/utils/use-search';
|
||||||
import Import from "./Import.vue";
|
import Import from './Import.vue';
|
||||||
import {getTenantId} from "@/utils/domain";
|
import { getTenantId } from '@/utils/domain';
|
||||||
|
|
||||||
// 定义包含关键词的参数类型
|
// 定义包含关键词的参数类型
|
||||||
interface MenuSearchParam extends MenuParam {
|
interface MenuSearchParam extends MenuParam {
|
||||||
keywords?: string;
|
keywords?: string;
|
||||||
}
|
|
||||||
|
|
||||||
const props = withDefaults(
|
|
||||||
defineProps<{
|
|
||||||
// 选中的数据
|
|
||||||
selection?: Menu[];
|
|
||||||
}>(),
|
|
||||||
{}
|
|
||||||
);
|
|
||||||
|
|
||||||
// 请求状态
|
|
||||||
const loading = ref(false);
|
|
||||||
const menuList = ref<Menu[]>([]);
|
|
||||||
// 是否显示导入弹窗
|
|
||||||
const showImport = ref(false);
|
|
||||||
|
|
||||||
// 表单数据
|
|
||||||
const { where, resetFields } = useSearch<MenuSearchParam>({
|
|
||||||
keywords: ''
|
|
||||||
});
|
|
||||||
|
|
||||||
const emit = defineEmits<{
|
|
||||||
(e: 'search', where?: MenuSearchParam): void;
|
|
||||||
(e: 'add'): void;
|
|
||||||
}>();
|
|
||||||
|
|
||||||
// 新增
|
|
||||||
const add = () => {
|
|
||||||
emit('add');
|
|
||||||
};
|
|
||||||
|
|
||||||
const reload = () => {
|
|
||||||
emit('search', where);
|
|
||||||
};
|
|
||||||
|
|
||||||
// 导出
|
|
||||||
const handleExport = async () => {
|
|
||||||
if (loading.value) {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loading.value = true;
|
const props = withDefaults(
|
||||||
message.loading('正在准备导出数据...', 0);
|
defineProps<{
|
||||||
|
// 选中的数据
|
||||||
|
selection?: Menu[];
|
||||||
|
}>(),
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
|
||||||
try {
|
// 请求状态
|
||||||
const array: (string | number)[][] = [
|
const loading = ref(false);
|
||||||
[
|
const menuList = ref<Menu[]>([]);
|
||||||
'菜单ID',
|
// 是否显示导入弹窗
|
||||||
'父级ID',
|
const showImport = ref(false);
|
||||||
'菜单名称',
|
|
||||||
'路由地址',
|
|
||||||
'组件路径',
|
|
||||||
'权限标识',
|
|
||||||
'菜单类型',
|
|
||||||
'图标',
|
|
||||||
'排序号',
|
|
||||||
'是否隐藏'
|
|
||||||
]
|
|
||||||
];
|
|
||||||
|
|
||||||
// 按搜索结果导出
|
// 表单数据
|
||||||
const list = await listMenus({
|
const { where, resetFields } = useSearch<MenuSearchParam>({
|
||||||
title: where.keywords,
|
keywords: ''
|
||||||
path: where.keywords,
|
});
|
||||||
authority: where.keywords
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!list || list.length === 0) {
|
const emit = defineEmits<{
|
||||||
message.warning('没有数据可以导出');
|
(e: 'search', where?: MenuSearchParam): void;
|
||||||
loading.value = false;
|
(e: 'add'): void;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
// 新增
|
||||||
|
const add = () => {
|
||||||
|
emit('add');
|
||||||
|
};
|
||||||
|
|
||||||
|
const reload = () => {
|
||||||
|
emit('search', where);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 导出
|
||||||
|
const handleExport = async () => {
|
||||||
|
if (loading.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
menuList.value = list as Menu[];
|
loading.value = true;
|
||||||
|
message.loading('正在准备导出数据...', 0);
|
||||||
|
|
||||||
list.forEach((d: Menu) => {
|
try {
|
||||||
array.push([
|
const array: (string | number)[][] = [
|
||||||
`${d.menuId || ''}`,
|
[
|
||||||
`${d.parentId || 0}`,
|
'菜单ID',
|
||||||
`${d.title || ''}`,
|
'父级ID',
|
||||||
`${d.path || ''}`,
|
'菜单名称',
|
||||||
`${d.component || ''}`,
|
'路由地址',
|
||||||
`${d.authority || ''}`,
|
'组件路径',
|
||||||
`${d.menuType !== undefined ? d.menuType : ''}`,
|
'权限标识',
|
||||||
`${d.icon || ''}`,
|
'菜单类型',
|
||||||
`${d.sortNumber !== undefined ? d.sortNumber : ''}`,
|
'图标',
|
||||||
`${d.hide !== undefined ? d.hide : ''}`
|
'排序号',
|
||||||
]);
|
'是否隐藏'
|
||||||
});
|
]
|
||||||
|
];
|
||||||
|
|
||||||
const sheetName = `bak_menu_${getTenantId()}`;
|
// 按搜索结果导出
|
||||||
const workbook = {
|
const list = await listMenus({
|
||||||
SheetNames: [sheetName],
|
title: where.keywords,
|
||||||
Sheets: {}
|
path: where.keywords,
|
||||||
};
|
authority: where.keywords
|
||||||
const sheet = utils.aoa_to_sheet(array);
|
});
|
||||||
workbook.Sheets[sheetName] = sheet;
|
|
||||||
|
|
||||||
// 设置列宽
|
if (!list || list.length === 0) {
|
||||||
sheet['!cols'] = [
|
message.warning('没有数据可以导出');
|
||||||
{ wch: 10 }, // 菜单ID
|
loading.value = false;
|
||||||
{ wch: 10 }, // 父级ID
|
return;
|
||||||
{ wch: 20 }, // 菜单名称
|
}
|
||||||
{ wch: 25 }, // 路由地址
|
|
||||||
{ wch: 25 }, // 组件路径
|
|
||||||
{ wch: 20 }, // 权限标识
|
|
||||||
{ wch: 10 }, // 菜单类型
|
|
||||||
{ wch: 15 }, // 图标
|
|
||||||
{ wch: 10 }, // 排序号
|
|
||||||
{ wch: 10 }, // 是否隐藏
|
|
||||||
{ wch: 20 }, // 创建时间
|
|
||||||
{ wch: 20 } // 更新时间
|
|
||||||
];
|
|
||||||
|
|
||||||
message.destroy();
|
menuList.value = list as Menu[];
|
||||||
message.loading('正在生成Excel文件...', 0);
|
|
||||||
|
|
||||||
setTimeout(() => {
|
list.forEach((d: Menu) => {
|
||||||
writeFile(workbook, `${sheetName}.xlsx`);
|
array.push([
|
||||||
|
`${d.menuId || ''}`,
|
||||||
|
`${d.parentId || 0}`,
|
||||||
|
`${d.title || ''}`,
|
||||||
|
`${d.path || ''}`,
|
||||||
|
`${d.component || ''}`,
|
||||||
|
`${d.authority || ''}`,
|
||||||
|
`${d.menuType !== undefined ? d.menuType : ''}`,
|
||||||
|
`${d.icon || ''}`,
|
||||||
|
`${d.sortNumber !== undefined ? d.sortNumber : ''}`,
|
||||||
|
`${d.hide !== undefined ? d.hide : ''}`
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
const sheetName = `bak_menu_${getTenantId()}`;
|
||||||
|
const workbook = {
|
||||||
|
SheetNames: [sheetName],
|
||||||
|
Sheets: {}
|
||||||
|
};
|
||||||
|
const sheet = utils.aoa_to_sheet(array);
|
||||||
|
workbook.Sheets[sheetName] = sheet;
|
||||||
|
|
||||||
|
// 设置列宽
|
||||||
|
sheet['!cols'] = [
|
||||||
|
{ wch: 10 }, // 菜单ID
|
||||||
|
{ wch: 10 }, // 父级ID
|
||||||
|
{ wch: 20 }, // 菜单名称
|
||||||
|
{ wch: 25 }, // 路由地址
|
||||||
|
{ wch: 25 }, // 组件路径
|
||||||
|
{ wch: 20 }, // 权限标识
|
||||||
|
{ wch: 10 }, // 菜单类型
|
||||||
|
{ wch: 15 }, // 图标
|
||||||
|
{ wch: 10 }, // 排序号
|
||||||
|
{ wch: 10 }, // 是否隐藏
|
||||||
|
{ wch: 20 }, // 创建时间
|
||||||
|
{ wch: 20 } // 更新时间
|
||||||
|
];
|
||||||
|
|
||||||
|
message.destroy();
|
||||||
|
message.loading('正在生成Excel文件...', 0);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
writeFile(workbook, `${sheetName}.xlsx`);
|
||||||
|
loading.value = false;
|
||||||
|
message.destroy();
|
||||||
|
message.success(`成功导出 ${list.length} 条记录`);
|
||||||
|
}, 1000);
|
||||||
|
} catch (error: any) {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
message.destroy();
|
message.destroy();
|
||||||
message.success(`成功导出 ${list.length} 条记录`);
|
message.error(error.message || '导出失败,请重试');
|
||||||
}, 1000);
|
}
|
||||||
|
};
|
||||||
|
|
||||||
} catch (error: any) {
|
/* 打开导入弹窗 */
|
||||||
loading.value = false;
|
const openImport = () => {
|
||||||
message.destroy();
|
showImport.value = true;
|
||||||
message.error(error.message || '导出失败,请重试');
|
};
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* 打开导入弹窗 */
|
/* 重置 */
|
||||||
const openImport = () => {
|
const reset = () => {
|
||||||
showImport.value = true;
|
resetFields();
|
||||||
};
|
reload();
|
||||||
|
};
|
||||||
/* 重置 */
|
|
||||||
const reset = () => {
|
|
||||||
resetFields();
|
|
||||||
reload();
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user