Commit ccc52175 authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents cd9386ae ca63ef0e
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { BasicTable, useTable } from '@/components/Table'; import { BasicTable, useTable } from '@/components/Table';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
import { Columns } from '@/views/mallResourceDevelopment/dataSet/departmentalResources/departmentalResources.data'; import { Columns } from './departmentalResources.data';
import { resourceList } from '@/views/mallResourceDevelopment/dataSet/departmentalResources/mock'; import { resourceList } from './mock';
import { ref } from 'vue'; import { ref } from 'vue';
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { Pagination, Select } from 'ant-design-vue'; import { Pagination, Select } from 'ant-design-vue';
......
export const resourceList = [ export const resourceList = [
{ {
resourceName: '基本信息', resourceName: 'API 文档生成',
scene: 'databaseOfflineLoading', scene: 'apiDocGeneration',
resourceCataloging: '党建建设', resourceCataloging: 'API 管理',
icon: 'majesticons:table', icon: 'mdi:file-document-outline',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '数据资源管理部', ownershipBody: '开发部',
applicantOrganization: '数据资源管理部', applicantOrganization: '开发部',
description: '集团党委会、党委理论学习中心的学习会的组织实操、集团党委、纪委换届选举', description: '自动生成 RESTful 和 GraphQL API 的文档,支持多种输出格式。',
label: '其他', label: '工具',
permissionType: '推送',
applicant: 'admin', applicant: 'admin',
permissionType: '查看', createdTime: '2023/10/01 09:00:00',
createdTime: '2023/01/05 15:43:15', view: '150',
view: '85', edit: '6',
edit: '2',
isShare: 'true', isShare: 'true',
}, },
{ {
resourceName: '党员发展计划', resourceName: 'API 测试平台',
scene: 'partyDevelopmentPlan', scene: 'apiTestingPlatform',
resourceCataloging: '党建建设', resourceCataloging: 'API 管理',
icon: 'majesticons:table', icon: 'mdi:test-tube',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '组织人事部', ownershipBody: '测试部',
applicantOrganization: '组织人事部', applicantOrganization: '测试部',
permissionType: '查看', permissionType: '推送',
description: '制定年度党员发展计划,开展入党积极分子培训', description: '提供一个全面的 API 测试环境,包括自动化测试和性能测试。',
label: '计划', label: '测试',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/02/10 09:20:30', createdTime: '2023/10/05 14:30:00',
view: '120', view: '200',
edit: '5', edit: '8',
isShare: 'true', isShare: 'true',
}, },
{ {
resourceName: '主题教育活动', resourceName: 'API 安全审计',
scene: 'themeEducationActivity', scene: 'apiSecurityAudit',
resourceCataloging: '党建建设', resourceCataloging: 'API 安全',
icon: 'majesticons:table', icon: 'mdi:shield-check',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '宣传部', ownershipBody: '安全部',
applicantOrganization: '宣传部', applicantOrganization: '安全部',
permissionType: '查看', permissionType: '下载',
description: '举办各类主题教育活动,增强党员意识', description: '定期进行 API 安全审查,确保所有接口符合安全标准。',
label: '活动', label: '安全',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/03/15 14:45:45', createdTime: '2023/10/10 11:00:00',
view: '95', view: '180',
edit: '3', edit: '7',
isShare: 'false', isShare: 'false',
}, },
{ {
resourceName: '党建工作总结', resourceName: 'API 版本管理',
scene: 'partyWorkSummary', scene: 'apiVersionManagement',
resourceCataloging: '党建建设', resourceCataloging: 'API 管理',
icon: 'majesticons:table', icon: 'mdi:history',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '办公室', ownershipBody: '架构部',
applicantOrganization: '办公室', applicantOrganization: '架构部',
permissionType: '查看', permissionType: '推送',
description: '撰写季度党建工作总结报告', description: '管理和维护不同版本的 API,确保向后兼容性和稳定性。',
label: '总结', label: '管理',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/08/10 09:00:00', createdTime: '2023/10/15 09:45:00',
view: '80', view: '160',
edit: '1', edit: '5',
isShare: 'true', isShare: 'true',
}, },
{ {
resourceName: '党史知识竞赛', resourceName: 'API 性能监控',
scene: 'partyHistoryQuiz', scene: 'apiPerformanceMonitoring',
resourceCataloging: '党建建设', resourceCataloging: 'API 监控',
icon: 'majesticons:table', icon: 'mdi:chart-line',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '宣传教育中心', ownershipBody: '运维部',
applicantOrganization: '宣传教育中心', applicantOrganization: '运维部',
permissionType: '编辑', permissionType: '下载',
description: '组织党史知识竞赛,提升党员历史素养', description: '实时监控 API 的性能指标,如响应时间和吞吐量,以保证服务的高可用性。',
label: '竞赛', label: '监控',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/05/25 16:30:15', createdTime: '2023/10/20 10:00:00',
view: '110', view: '190',
edit: '4', edit: '6',
isShare: 'false', isShare: 'false',
}, },
{ {
resourceName: '公交优化方案', resourceName: 'API 流量分析',
scene: 'urbanBusOptimization', scene: 'apiTrafficAnalysis',
resourceCataloging: '交通信息', resourceCataloging: 'API 分析',
icon: 'majesticons:bus', icon: 'mdi:chart-bar',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '交通规划部', ownershipBody: '数据分析部',
applicantOrganization: '交通规划部', applicantOrganization: '数据分析部',
permissionType: '编辑', permissionType: '推送',
description: '分析现有公交线路运行情况,提出优化建议以提高效率和乘客满意度。', description: '分析 API 的流量模式,识别使用趋势和潜在问题。',
label: '方案', label: '分析',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/04/01 10:00:00', createdTime: '2023/10/25 11:15:00',
view: '90', view: '170',
edit: '3', edit: '4',
isShare: 'true', isShare: 'true',
}, },
{ {
resourceName: '交通系统部署', resourceName: 'API 认证与授权',
scene: 'intelligentTransportSystemDeployment', scene: 'apiAuthenticationAndAuthorization',
icon: 'majesticons:bus', resourceCataloging: 'API 安全',
resourceCataloging: '交通信息', icon: 'mdi:lock',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '信息技术部', ownershipBody: '安全部',
applicantOrganization: '信息技术部', applicantOrganization: '安全部',
permissionType: '编辑', permissionType: '下载',
description: description: '实现强大的认证和授权机制,保护 API 不受未授权访问。',
'实施先进的智能交通管理系统,包括信号灯控制、交通流量监测等,旨在缓解城市交通拥堵。', label: '安全',
label: '技术',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/05/15 11:30:00', createdTime: '2023/10/30 12:30:00',
view: '115', view: '185',
edit: '5', edit: '5',
isShare: 'false', isShare: 'false',
}, },
{ {
resourceName: '绿色出行倡议', resourceName: 'API 日志记录',
scene: 'greenCommuteInitiative', scene: 'apiLogging',
icon: 'majesticons:bus', resourceCataloging: 'API 监控',
resourceCataloging: '交通信息', icon: 'mdi:clipboard-list-outline',
color: '#71c8d5', color: '#71c8d5',
ownershipBody: '环保与发展部', ownershipBody: '运维部',
applicantOrganization: '环保与发展部', applicantOrganization: '运维部',
permissionType: '删除', permissionType: '推送',
description: '推广低碳环保的出行方式,如骑行和步行,并为市民提供相关设施支持。', description: '详细记录 API 调用的日志,便于故障排查和行为审计。',
label: '倡议', label: '监控',
applicant: 'admin', applicant: 'admin',
createdTime: '2023/09/28 14:00:00', createdTime: '2023/11/05 13:00:00',
view: '75', view: '165',
edit: '2', edit: '3',
isShare: 'true', isShare: 'true',
}, },
]; ];
...@@ -187,8 +187,8 @@ ...@@ -187,8 +187,8 @@
const sortOrder = ref('latest'); const sortOrder = ref('latest');
const isDisabled = ref(); const isDisabled = ref();
const selectedCard = reactive([] as any[]); const selectedCard = reactive([] as any[]);
const cardListData = ref([]); const cardListData = ref(cardList);
const workSpaceName = ref('党建建设'); const workSpaceName = ref('公共API');
const data = ref([ const data = ref([
{ {
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
: item.isShare.toString() === selectValue.value; : item.isShare.toString() === selectValue.value;
const workspaceMatch = const workspaceMatch =
workSpaceName.value === '' || workSpaceName.value === '' ||
workSpaceName.value === '公共数据集' || workSpaceName.value === '公共API' ||
item.parentWorkSpaceName === workSpaceName.value; item.parentWorkSpaceName === workSpaceName.value;
return titleMatch.value && shareMatch && workspaceMatch; return titleMatch.value && shareMatch && workspaceMatch;
}); });
...@@ -304,7 +304,9 @@ ...@@ -304,7 +304,9 @@
openEditModal(true, item); openEditModal(true, item);
} }
function handleBulkDownload() {} function handleBulkDownload() {
createMessage.success('下载成功');
}
/**批量推送推送*/ /**批量推送推送*/
function pushNotifications(record) { function pushNotifications(record) {
...@@ -327,7 +329,7 @@ ...@@ -327,7 +329,7 @@
: item.isShare.toString() === selectValue.value; : item.isShare.toString() === selectValue.value;
const workspaceMatch = const workspaceMatch =
workSpaceName.value === '' || workSpaceName.value === '' ||
workSpaceName.value === '公共数据集' || workSpaceName.value === '公共API' ||
item.parentWorkSpaceName === workSpaceName.value; item.parentWorkSpaceName === workSpaceName.value;
return titleMatch.value && shareMatch && workspaceMatch; return titleMatch.value && shareMatch && workspaceMatch;
}); });
......
...@@ -304,7 +304,9 @@ ...@@ -304,7 +304,9 @@
openEditModal(true, item); openEditModal(true, item);
} }
function handleBulkDownload() {} function handleBulkDownload() {
createMessage.success('下载成功');
}
/**批量推送推送*/ /**批量推送推送*/
function pushNotifications(record) { function pushNotifications(record) {
......
...@@ -303,7 +303,9 @@ ...@@ -303,7 +303,9 @@
} }
} }
function handleBulkDownload() {} function handleBulkDownload() {
createMessage.success('下载成功');
}
function information(item) { function information(item) {
openEditModal(true, item); openEditModal(true, item);
......
...@@ -323,7 +323,9 @@ ...@@ -323,7 +323,9 @@
} }
} }
function handleBulkDownload() {} function handleBulkDownload() {
createMessage.success('下载成功');
}
/**批量推送推送*/ /**批量推送推送*/
function pushNotifications() { function pushNotifications() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment