From e3b275304de5c5ec26d260236cddf29fdd49e164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 7 Jul 2025 18:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=8D=E8=83=BD=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=B0=E6=97=B6=E7=9A=84=E6=8E=92=E5=BA=8F=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- .gitignore | 1 + src/api/hjm/hjmCar/model/index.ts | 7 + src/api/hjm/hjmGpsLog/model/index.ts | 1 + src/api/system/user/model/index.ts | 2 + src/api/system/userRole/model/index.ts | 1 + .../cms/cmsArticle/components/articleEdit.vue | 76 ++- src/views/cms/cmsArticle/index.vue | 13 +- .../hjm/count/components/hjmFenceEdit.vue | 306 +++++++++ src/views/hjm/count/components/search.vue | 42 ++ src/views/hjm/count/index.vue | 150 +++++ src/views/hjm/hjmCar/components/Extra.vue | 69 +- .../hjm/hjmCar/components/hjmCarEdit.vue | 561 ++++++++-------- src/views/hjm/hjmCar/components/search.vue | 598 +++++++++--------- src/views/hjm/hjmCar/index.vue | 37 +- src/views/hjm/hjmFence/index.vue | 4 - src/views/hjm/hjmGpsLog/components/search.vue | 33 +- src/views/hjm/hjmGpsLog/index.vue | 464 +++++++------- src/views/hjm/staff/index.vue | 2 +- src/views/hjm/userVerify/components/Extra.vue | 55 ++ src/views/hjm/userVerify/index.vue | 2 +- .../system/userVerify/components/search.vue | 4 +- 22 files changed, 1537 insertions(+), 895 deletions(-) create mode 100644 src/views/hjm/count/components/hjmFenceEdit.vue create mode 100644 src/views/hjm/count/components/search.vue create mode 100644 src/views/hjm/count/index.vue create mode 100644 src/views/hjm/userVerify/components/Extra.vue diff --git a/.env.development b/.env.development index e774d25..1704208 100644 --- a/.env.development +++ b/.env.development @@ -1,10 +1,10 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://server.gxwebsoft.com/api -#VITE_API_URL=https://cms-api.websoft.top/api + VITE_API_URL=https://cms-api.websoft.top/api #VITE_SOCKET_URL=ws://127.0.0.1:9191 #VITE_SERVER_URL=http://127.0.0.1:8000/api -VITE_API_URL=http://127.0.0.1:9000/api +#VITE_API_URL=http://127.0.0.1:9000/api #/booking/bookingItem diff --git a/.gitignore b/.gitignore index 5c5538a..13f4ac9 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ pnpm-debug.log* *.njsproj *.sln *.sw? +node_modules diff --git a/src/api/hjm/hjmCar/model/index.ts b/src/api/hjm/hjmCar/model/index.ts index 3cfd34f..37820a6 100644 --- a/src/api/hjm/hjmCar/model/index.ts +++ b/src/api/hjm/hjmCar/model/index.ts @@ -27,6 +27,10 @@ export interface HjmCar { driverName?: string; // 操作员手机号 driverPhone?: string; + // 安装人员 + installerId?: number; + // 安装时间 + installTime?: string; // 保险状态 insuranceStatus?: string; // GPS设备编号 @@ -57,6 +61,8 @@ export interface HjmCar { userId?: number; // 认领状态 claim?: number; + // 认领时间 + claimTime?: string; // 绑定用户 toUser?: string; // 排序(数字越小越靠前) @@ -80,6 +86,7 @@ export interface HjmCarParam extends PageParam { id?: number; status?: number; organizationId?: number; + installerId?: number; organizationParentId?: number; keywords?: string; } diff --git a/src/api/hjm/hjmGpsLog/model/index.ts b/src/api/hjm/hjmGpsLog/model/index.ts index abcf75b..a22d413 100644 --- a/src/api/hjm/hjmGpsLog/model/index.ts +++ b/src/api/hjm/hjmGpsLog/model/index.ts @@ -29,5 +29,6 @@ export interface HjmGpsLog { */ export interface HjmGpsLogParam extends PageParam { id?: number; + gpsNo?: string; keywords?: string; } diff --git a/src/api/system/user/model/index.ts b/src/api/system/user/model/index.ts index af53243..e7a09a6 100644 --- a/src/api/system/user/model/index.ts +++ b/src/api/system/user/model/index.ts @@ -125,6 +125,8 @@ export interface User { installed?: boolean; label?: string; value?: number; + // 关注数量 + followers?: number; } /** diff --git a/src/api/system/userRole/model/index.ts b/src/api/system/userRole/model/index.ts index 34f10f1..6a04ca3 100644 --- a/src/api/system/userRole/model/index.ts +++ b/src/api/system/userRole/model/index.ts @@ -26,4 +26,5 @@ export interface UserRoleParam extends PageParam { keywords?: any; roleId?: number; userId?: number; + userIds?: any; } diff --git a/src/views/cms/cmsArticle/components/articleEdit.vue b/src/views/cms/cmsArticle/components/articleEdit.vue index b5bac80..76b3735 100644 --- a/src/views/cms/cmsArticle/components/articleEdit.vue +++ b/src/views/cms/cmsArticle/components/articleEdit.vue @@ -214,11 +214,7 @@ import { ref, reactive, watch } from 'vue'; import { Form, message } from 'ant-design-vue'; import { assignObject, htmlToText, uuid } from 'ele-admin-pro'; - import { - addCmsArticle, - getCmsArticle, - updateCmsArticle - } from '@/api/cms/cmsArticle'; + import { addCmsArticle, updateCmsArticle } from '@/api/cms/cmsArticle'; import { CmsArticle } from '@/api/cms/cmsArticle/model'; import { useThemeStore } from '@/store/modules/theme'; import { storeToRefs } from 'pinia'; @@ -321,7 +317,7 @@ files: '', lang: locale.value || undefined, // 排序 - sortNumber: 100, + sortNumber: undefined, // 备注 comments: undefined, // 状态 @@ -478,6 +474,10 @@ if (!formRef.value) { return; } + if (content.value == '') { + message.error('请输入文章内容'); + return; + } formRef.value .validate() .then(() => { @@ -529,43 +529,41 @@ content.value = ''; if (props.data) { loading.value = true; + const data = props.data; // 文章详情 - getCmsArticle(Number(props.data?.articleId)).then((data) => { - assignObject(form, data); - if (data.content) { - content.value = data.content; - } - - if (data.image) { - images.value.push({ + assignObject(form, data); + if (data.content) { + content.value = data.content; + } + if (data.image) { + images.value.push({ + uid: uuid(), + url: data.image, + status: 'done' + }); + } + if (!data.source) { + form.source = undefined; + } + if (data.tags) { + form.tags = JSON.parse(form.tags); + } else { + form.tags = undefined; + } + if (data.editor) { + editor.value = data.editor; + } + if (data.files) { + const arr = JSON.parse(data.files); + arr.map((url: string) => { + files.value.push({ uid: uuid(), - url: data.image, + url: url, status: 'done' }); - } - if (!data.source) { - form.source = undefined; - } - if (data.tags) { - form.tags = JSON.parse(form.tags); - } else { - form.tags = undefined; - } - if (data.editor) { - editor.value = data.editor; - } - if (data.files) { - const arr = JSON.parse(data.files); - arr.map((url: string) => { - files.value.push({ - uid: uuid(), - url: url, - status: 'done' - }); - }); - } - loading.value = false; - }); + }); + } + loading.value = false; // assignObject(form, props.data); // 文章分类 diff --git a/src/views/cms/cmsArticle/index.vue b/src/views/cms/cmsArticle/index.vue index c218eaf..59ff1c4 100644 --- a/src/views/cms/cmsArticle/index.vue +++ b/src/views/cms/cmsArticle/index.vue @@ -133,7 +133,7 @@ import { pageCmsArticle, removeCmsArticle, removeBatchCmsArticle, - updateCmsArticle + updateCmsArticle, getCmsArticle } from '@/api/cms/cmsArticle'; import type {CmsArticle, CmsArticleParam} from '@/api/cms/cmsArticle/model'; import {formatNumber} from 'ele-admin-pro/es'; @@ -142,8 +142,7 @@ import {toTreeData} from 'ele-admin-pro'; import {toDateString} from 'ele-admin-pro'; import { detail, - getPageTitle, - navTo + getPageTitle } from '@/utils/common'; import {listCmsNavigation} from '@/api/cms/cmsNavigation'; import {CmsNavigation} from '@/api/cms/cmsNavigation/model'; @@ -293,8 +292,11 @@ const reload = (where?: CmsArticleParam) => { }; /* 打开编辑弹窗 */ -const openEdit = (row?: CmsArticle) => { +const openEdit = async (row?: CmsArticle) => { current.value = row ?? null; + if(row?.articleId){ + current.value = await getCmsArticle(row?.articleId); + } showEdit.value = true; }; @@ -408,8 +410,7 @@ if (!navigationList.value) { if ( d.model == 'index' || d.model == 'page' || - d.model == 'order' || - d.model == 'links' + d.model == 'order' ) { d.disabled = true; } diff --git a/src/views/hjm/count/components/hjmFenceEdit.vue b/src/views/hjm/count/components/hjmFenceEdit.vue new file mode 100644 index 0000000..5d3ae2d --- /dev/null +++ b/src/views/hjm/count/components/hjmFenceEdit.vue @@ -0,0 +1,306 @@ + + + + diff --git a/src/views/hjm/count/components/search.vue b/src/views/hjm/count/components/search.vue new file mode 100644 index 0000000..f7509dc --- /dev/null +++ b/src/views/hjm/count/components/search.vue @@ -0,0 +1,42 @@ + + + + diff --git a/src/views/hjm/count/index.vue b/src/views/hjm/count/index.vue new file mode 100644 index 0000000..6baa8ee --- /dev/null +++ b/src/views/hjm/count/index.vue @@ -0,0 +1,150 @@ + + + + + + + diff --git a/src/views/hjm/hjmCar/components/Extra.vue b/src/views/hjm/hjmCar/components/Extra.vue index 35fb5c7..ed37d61 100644 --- a/src/views/hjm/hjmCar/components/Extra.vue +++ b/src/views/hjm/hjmCar/components/Extra.vue @@ -1,41 +1,54 @@ diff --git a/src/views/hjm/hjmCar/components/hjmCarEdit.vue b/src/views/hjm/hjmCar/components/hjmCarEdit.vue index 09103c0..b221725 100644 --- a/src/views/hjm/hjmCar/components/hjmCarEdit.vue +++ b/src/views/hjm/hjmCar/components/hjmCarEdit.vue @@ -19,9 +19,7 @@ styleResponsive ? { md: 19, sm: 19, xs: 24 } : { flex: '1' } " > - + - + /> {{ form.driver }} {{ form.driverPhone }} - + diff --git a/src/views/hjm/hjmCar/components/search.vue b/src/views/hjm/hjmCar/components/search.vue index 0ca2c3c..671117d 100644 --- a/src/views/hjm/hjmCar/components/search.vue +++ b/src/views/hjm/hjmCar/components/search.vue @@ -3,7 +3,7 @@ 添加 @@ -15,7 +15,7 @@ @click="removeBatch" > 批量删除 @@ -33,296 +33,325 @@ v-model:value="where.keywords" @search="reload" /> - 导入xls - 导出二维码 - - + 导入xls + 导出二维码 + + - + diff --git a/src/views/hjm/hjmCar/index.vue b/src/views/hjm/hjmCar/index.vue index dab848f..06c01c4 100644 --- a/src/views/hjm/hjmCar/index.vue +++ b/src/views/hjm/hjmCar/index.vue @@ -43,13 +43,23 @@ +