优化插件内容
parent
ea59620cef
commit
172ce08402
20
package.json
20
package.json
|
|
@ -17,17 +17,17 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"fix-memory-limit": "cross-env LIMIT=8048 increase-memory-limit",
|
||||||
"bootstrap": "pnpm install",
|
"bootstrap": "pnpm install",
|
||||||
"build": "vite build",
|
"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:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode analyze",
|
||||||
"build:docker": "vite build --mode docker",
|
"build:docker": "vite build --mode docker",
|
||||||
"build:linyefanghuo": "vite build --mode linyefanghuo",
|
|
||||||
"build:no-cache": "pnpm store prune && npm run build",
|
"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",
|
"build:test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build --mode test",
|
||||||
"commit": "czg",
|
"commit": "czg",
|
||||||
"dev": "pnpm vite",
|
"dev": "pnpm vite",
|
||||||
"dev:linyefanghuo": "pnpm vite --mode linyefanghuo",
|
"dev:linyefanghuo": "pnpm vite --mode linyefanghuo",
|
||||||
"fix-memory-limit": "cross-env LIMIT=8048 increase-memory-limit",
|
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"postinstall": "turbo run stub",
|
"postinstall": "turbo run stub",
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
"@iconify/iconify": "^3.1.1",
|
"@iconify/iconify": "^3.1.1",
|
||||||
"@logicflow/core": "^1.2.18",
|
"@logicflow/core": "^1.2.18",
|
||||||
"@logicflow/extension": "^1.2.19",
|
"@logicflow/extension": "^1.2.19",
|
||||||
"@microsoft/signalr": "^8.0.7",
|
"@microsoft/signalr": "^8.0.0",
|
||||||
"@vben/hooks": "workspace:*",
|
"@vben/hooks": "workspace:*",
|
||||||
"@vue/shared": "^3.4.5",
|
"@vue/shared": "^3.4.5",
|
||||||
"@vueuse/core": "^10.7.1",
|
"@vueuse/core": "^10.7.1",
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"driver.js": "^1.3.1",
|
"driver.js": "^1.3.1",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.4.3",
|
||||||
"element-plus": "^2.9.1",
|
"element-plus": "^2.6.0",
|
||||||
"exceljs": "^4.4.0",
|
"exceljs": "^4.4.0",
|
||||||
"js-md5": "^0.8.3",
|
"js-md5": "^0.8.3",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
|
@ -105,17 +105,23 @@
|
||||||
"sortablejs": "^1.15.1",
|
"sortablejs": "^1.15.1",
|
||||||
"tinymce": "^5.10.9",
|
"tinymce": "^5.10.9",
|
||||||
"unocss": "0.58.3",
|
"unocss": "0.58.3",
|
||||||
|
"uuid": "^9.0.1",
|
||||||
"vditor": "^3.9.8",
|
"vditor": "^3.9.8",
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
|
"vue-color-kit": "^1.0.6",
|
||||||
"vue-i18n": "^9.8.0",
|
"vue-i18n": "^9.8.0",
|
||||||
"vue-json-pretty": "^2.3.0",
|
"vue-json-pretty": "^2.3.0",
|
||||||
"vue-router": "^4.2.5",
|
"vue-router": "^4.2.5",
|
||||||
"vue-types": "^5.1.1",
|
"vue-types": "^5.1.1",
|
||||||
"vuedraggable": "^4.1.0",
|
"vuedraggable": "^4.1.0",
|
||||||
|
"vuex": "^4.1.0",
|
||||||
"vxe-table": "^4.5.17",
|
"vxe-table": "^4.5.17",
|
||||||
"vxe-table-plugin-export-xlsx": "^3.1.0",
|
"vxe-table-plugin-export-xlsx": "^3.1.0",
|
||||||
"xe-utils": "^3.5.14",
|
"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": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^18.4.4",
|
"@commitlint/cli": "^18.4.4",
|
||||||
|
|
@ -126,6 +132,7 @@
|
||||||
"@types/crypto-js": "^4.2.1",
|
"@types/crypto-js": "^4.2.1",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/mockjs": "^1.0.10",
|
"@types/mockjs": "^1.0.10",
|
||||||
|
"@types/node": "^20.10.6",
|
||||||
"@types/nprogress": "^0.2.3",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@types/qrcode": "^1.5.5",
|
"@types/qrcode": "^1.5.5",
|
||||||
"@types/qs": "^6.9.11",
|
"@types/qs": "^6.9.11",
|
||||||
|
|
@ -149,7 +156,8 @@
|
||||||
"turbo": "^1.11.3",
|
"turbo": "^1.11.3",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"unbuild": "^2.0.0",
|
"unbuild": "^2.0.0",
|
||||||
"vite": "^5.0.10",
|
"vite": "^4.2.0",
|
||||||
|
"vite-plugin-mars3d": "^3.1.3",
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
"vue-tsc": "^1.8.27"
|
"vue-tsc": "^1.8.27"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import ApiTree from './components/ApiTree.vue';
|
||||||
import ApiTreeSelect from './components/ApiTreeSelect.vue';
|
import ApiTreeSelect from './components/ApiTreeSelect.vue';
|
||||||
import ApiCascader from './components/ApiCascader.vue';
|
import ApiCascader from './components/ApiCascader.vue';
|
||||||
import ApiTransfer from './components/ApiTransfer.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 { StrengthMeter } from '@/components/StrengthMeter';
|
||||||
import { IconPicker } from '@/components/Icon';
|
import { IconPicker } from '@/components/Icon';
|
||||||
import { CountdownInput } from '@/components/CountDown';
|
import { CountdownInput } from '@/components/CountDown';
|
||||||
|
|
@ -45,9 +45,8 @@ componentMap.set('InputTextArea', Input.TextArea);
|
||||||
componentMap.set('InputNumber', InputNumber);
|
componentMap.set('InputNumber', InputNumber);
|
||||||
componentMap.set('AutoComplete', AutoComplete);
|
componentMap.set('AutoComplete', AutoComplete);
|
||||||
componentMap.set('ImageUpload', ImageUpload);
|
componentMap.set('ImageUpload', ImageUpload);
|
||||||
componentMap.set('VideoUpload', VideoUpload);
|
componentMap.set("VideoUpload",VideoUpload);
|
||||||
componentMap.set('FileUpload', FileUpload);
|
componentMap.set("FileUpload",FileUpload);
|
||||||
componentMap.set('Location', Location);
|
|
||||||
componentMap.set('Select', Select);
|
componentMap.set('Select', Select);
|
||||||
componentMap.set('ApiSelect', ApiSelect);
|
componentMap.set('ApiSelect', ApiSelect);
|
||||||
componentMap.set('ApiTree', ApiTree);
|
componentMap.set('ApiTree', ApiTree);
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,13 @@
|
||||||
import { useMessage } from '@/hooks/web/useMessage';
|
import { useMessage } from '@/hooks/web/useMessage';
|
||||||
import { getLastList, readMsg, getInfoByContentId } from '@/api/demo/message';
|
import { getLastList, readMsg, getInfoByContentId } from '@/api/demo/message';
|
||||||
import { useUserStore } from '@/store/modules/user';
|
import { useUserStore } from '@/store/modules/user';
|
||||||
|
import { useModal } from '@/components/Modal';
|
||||||
import NoticeList from './NoticeList.vue';
|
import NoticeList from './NoticeList.vue';
|
||||||
import { signal } from '@/utils/signalR';
|
import { signal } from '@/utils/signalR';
|
||||||
|
import { getDetail } from '@/api/sys/WFSchemeInfo';
|
||||||
import Icon from '@/components/Icon/Icon.vue';
|
import Icon from '@/components/Icon/Icon.vue';
|
||||||
|
|
||||||
|
const [registerModal, { openModal: openLookModal }] = useModal();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const userInfo: any = userStore.getUserInfo;
|
const userInfo: any = userStore.getUserInfo;
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
|
|
@ -47,6 +50,18 @@
|
||||||
const { createMessage, notification } = useMessage();
|
const { createMessage, notification } = useMessage();
|
||||||
const listData = ref(tabListData);
|
const listData = ref(tabListData);
|
||||||
const numberStyle = {};
|
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(() => {
|
const count = computed(() => {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
|
@ -58,6 +73,21 @@
|
||||||
|
|
||||||
async function onNoticeClick(record) {
|
async function onNoticeClick(record) {
|
||||||
console.log(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() {
|
async function getList() {
|
||||||
const data = await getLastList({
|
const data = await getLastList({
|
||||||
|
|
@ -98,18 +128,6 @@
|
||||||
//接口推送
|
//接口推送
|
||||||
signal.on('RevMsg', (user, message, time, id, issystem) => {
|
signal.on('RevMsg', (user, message, time, id, issystem) => {
|
||||||
console.log('报警', 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(() => {
|
onMounted(() => {
|
||||||
getList();
|
getList();
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,8 @@
|
||||||
<div :class="`${prefixCls}-action`">
|
<div :class="`${prefixCls}-action`">
|
||||||
<AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item `" />
|
<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`" />
|
<ErrorAction v-if="getUseErrorHandle" :class="`${prefixCls}-action__item error-action`" />
|
||||||
|
|
||||||
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />
|
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" />
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME } from
|
||||||
// 404 on a page
|
// 404 on a page
|
||||||
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
||||||
path: '/:path(.*)*',
|
path: '/:path(.*)*',
|
||||||
name: PAGE_NOT_FOUND_NAME +'parent',
|
name: PAGE_NOT_FOUND_NAME + '11',
|
||||||
component: LAYOUT,
|
component: LAYOUT,
|
||||||
meta: {
|
meta: {
|
||||||
title: 'ErrorPage',
|
title: 'ErrorPage',
|
||||||
|
|
@ -23,6 +23,16 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
||||||
hideMenu: true,
|
hideMenu: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/welcome',
|
||||||
|
name: PAGE_NOT_FOUND_NAME,
|
||||||
|
component: EXCEPTION_COMPONENT,
|
||||||
|
meta: {
|
||||||
|
title: 'Welcome',
|
||||||
|
hideBreadcrumb: true,
|
||||||
|
hideMenu: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ export const RootRoute: AppRouteRecordRaw = {
|
||||||
export const LoginRoute: AppRouteRecordRaw = {
|
export const LoginRoute: AppRouteRecordRaw = {
|
||||||
path: '/login',
|
path: '/login',
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
|
// component: () => import('@/views/sys/login/Login.vue'),
|
||||||
component: () => import('@/views/sys/login/Login.vue'),
|
component: () => import('@/views/sys/login/Login.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: t('routes.basic.login'),
|
title: t('routes.basic.login'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue