优化插件内容

zhufu
刘妍 2024-12-26 15:02:41 +08:00
parent ea59620cef
commit 172ce08402
6 changed files with 61 additions and 23 deletions

View File

@ -17,17 +17,17 @@
},
"type": "module",
"scripts": {
"fix-memory-limit": "cross-env LIMIT=8048 increase-memory-limit",
"bootstrap": "pnpm install",
"build": "vite build",
"build:linyefanghuo": "vite build --mode linyefanghuo",
"build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode analyze",
"build:docker": "vite build --mode docker",
"build:linyefanghuo": "vite build --mode linyefanghuo",
"build:no-cache": "pnpm store prune && npm run build",
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode test",
"commit": "czg",
"dev": "pnpm vite",
"dev:linyefanghuo": "pnpm vite --mode linyefanghuo",
"fix-memory-limit": "cross-env LIMIT=8048 increase-memory-limit",
"preinstall": "npx only-allow pnpm",
"postinstall": "turbo run stub",
"lint": "turbo run lint",
@ -75,7 +75,7 @@
"@iconify/iconify": "^3.1.1",
"@logicflow/core": "^1.2.18",
"@logicflow/extension": "^1.2.19",
"@microsoft/signalr": "^8.0.7",
"@microsoft/signalr": "^8.0.0",
"@vben/hooks": "workspace:*",
"@vue/shared": "^3.4.5",
"@vueuse/core": "^10.7.1",
@ -88,7 +88,7 @@
"dayjs": "^1.11.10",
"driver.js": "^1.3.1",
"echarts": "^5.4.3",
"element-plus": "^2.9.1",
"element-plus": "^2.6.0",
"exceljs": "^4.4.0",
"js-md5": "^0.8.3",
"lodash-es": "^4.17.21",
@ -105,17 +105,23 @@
"sortablejs": "^1.15.1",
"tinymce": "^5.10.9",
"unocss": "0.58.3",
"uuid": "^9.0.1",
"vditor": "^3.9.8",
"vue": "3.3.4",
"vue-color-kit": "^1.0.6",
"vue-i18n": "^9.8.0",
"vue-json-pretty": "^2.3.0",
"vue-router": "^4.2.5",
"vue-types": "^5.1.1",
"vuedraggable": "^4.1.0",
"vuex": "^4.1.0",
"vxe-table": "^4.5.17",
"vxe-table-plugin-export-xlsx": "^3.1.0",
"xe-utils": "^3.5.14",
"xlsx": "^0.18.5"
"xlsx": "^0.18.5",
"jszip":"^3.10.1",
"shpjs":"^6.1.0",
"js-base64":"3.7.7"
},
"devDependencies": {
"@commitlint/cli": "^18.4.4",
@ -126,6 +132,7 @@
"@types/crypto-js": "^4.2.1",
"@types/lodash-es": "^4.17.12",
"@types/mockjs": "^1.0.10",
"@types/node": "^20.10.6",
"@types/nprogress": "^0.2.3",
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.9.11",
@ -149,7 +156,8 @@
"turbo": "^1.11.3",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vite": "^5.0.10",
"vite": "^4.2.0",
"vite-plugin-mars3d": "^3.1.3",
"vite-plugin-mock": "^2.9.6",
"vue-tsc": "^1.8.27"
},

View File

@ -28,7 +28,7 @@ import ApiTree from './components/ApiTree.vue';
import ApiTreeSelect from './components/ApiTreeSelect.vue';
import ApiCascader from './components/ApiCascader.vue';
import ApiTransfer from './components/ApiTransfer.vue';
import { BasicUpload, ImageUpload, VideoUpload, FileUpload } from '@/components/Upload';
import { BasicUpload, ImageUpload,VideoUpload,FileUpload } from '@/components/Upload';
import { StrengthMeter } from '@/components/StrengthMeter';
import { IconPicker } from '@/components/Icon';
import { CountdownInput } from '@/components/CountDown';
@ -45,9 +45,8 @@ componentMap.set('InputTextArea', Input.TextArea);
componentMap.set('InputNumber', InputNumber);
componentMap.set('AutoComplete', AutoComplete);
componentMap.set('ImageUpload', ImageUpload);
componentMap.set('VideoUpload', VideoUpload);
componentMap.set('FileUpload', FileUpload);
componentMap.set('Location', Location);
componentMap.set("VideoUpload",VideoUpload);
componentMap.set("FileUpload",FileUpload);
componentMap.set('Select', Select);
componentMap.set('ApiSelect', ApiSelect);
componentMap.set('ApiTree', ApiTree);

View File

@ -36,10 +36,13 @@
import { useMessage } from '@/hooks/web/useMessage';
import { getLastList, readMsg, getInfoByContentId } from '@/api/demo/message';
import { useUserStore } from '@/store/modules/user';
import { useModal } from '@/components/Modal';
import NoticeList from './NoticeList.vue';
import { signal } from '@/utils/signalR';
import { getDetail } from '@/api/sys/WFSchemeInfo';
import Icon from '@/components/Icon/Icon.vue';
const [registerModal, { openModal: openLookModal }] = useModal();
const userStore = useUserStore();
const userInfo: any = userStore.getUserInfo;
const visible = ref(false);
@ -47,6 +50,18 @@
const { createMessage, notification } = useMessage();
const listData = ref(tabListData);
const numberStyle = {};
const auditOpen = ref(false);
const processId = ref('');
const taskId = ref('');
const isRead: any = ref(0);
const type = ref('');
const cloudQueryVisible = ref(false);
const cloudLandQueryVisible = ref(false);
const showSplitPolygon = ref(false);
const showInfoData = ref({});
const compare = ref(false);
const open = ref(false);
const SplitPolygonComponent = ref();
const count = computed(() => {
let count = 0;
@ -58,6 +73,21 @@
async function onNoticeClick(record) {
console.log(record);
visible.value = false;
const index = listData.value[0].list.findIndex((item: any) => item.id === record.id);
if (index !== -1) {
listData.value[0].list.splice(index, 1);
}
openLookModal(true, {
record: {
content: record.title,
createDate: record.datetime,
isRead: 0,
},
});
const data = await readMsg({
id: record.id,
});
}
async function getList() {
const data = await getLastList({
@ -98,18 +128,6 @@
//
signal.on('RevMsg', (user, message, time, id, issystem) => {
console.log('报警', user, message, time, id, issystem); //
// ChaoShi
// CloudQuery
let messageData = JSON.parse(message);
notification.info({
message: '您有一条新消息',
description: () => {
const res = messageData.queryid + '\n' + time;
return h('pre', {}, res);
},
duration: 3,
});
getList();
});
onMounted(() => {
getList();

View File

@ -35,6 +35,8 @@
<div :class="`${prefixCls}-action`">
<AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item `" />
<CloudQuery v-if="getIdentification" :class="`${prefixCls}-action__item `" />
<ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" />
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />

View File

@ -5,7 +5,7 @@ import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME } from
// 404 on a page
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
path: '/:path(.*)*',
name: PAGE_NOT_FOUND_NAME +'parent',
name: PAGE_NOT_FOUND_NAME + '11',
component: LAYOUT,
meta: {
title: 'ErrorPage',
@ -23,6 +23,16 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
hideMenu: true,
},
},
{
path: '/welcome',
name: PAGE_NOT_FOUND_NAME,
component: EXCEPTION_COMPONENT,
meta: {
title: 'Welcome',
hideBreadcrumb: true,
hideMenu: true,
},
},
],
};

View File

@ -35,6 +35,7 @@ export const RootRoute: AppRouteRecordRaw = {
export const LoginRoute: AppRouteRecordRaw = {
path: '/login',
name: 'Login',
// component: () => import('@/views/sys/login/Login.vue'),
component: () => import('@/views/sys/login/Login.vue'),
meta: {
title: t('routes.basic.login'),