Compare commits
303 Commits
89b1c527fa
...
prod
Author | SHA1 | Date | |
---|---|---|---|
29c20f6403 | |||
d6da044b48 | |||
8c062feef0 | |||
90b9b2b7a9 | |||
bc59c2c22f | |||
90eceb508a | |||
f794f6a8a9 | |||
6cc969e56a | |||
6ca27444e0 | |||
2f2f8fb798 | |||
1de539ddde | |||
67b80d7687 | |||
b44fa6ee7f | |||
559bd55153 | |||
cc24027880 | |||
66b7cc44e9 | |||
5f3ae86698 | |||
84ff3d21b4 | |||
e88b8b41d8 | |||
48ea62150d | |||
5975d1b94d | |||
faababd9a4 | |||
c7f52fa107 | |||
28018815b7 | |||
bad1423acd | |||
f6f258c9b7 | |||
559e46dc41 | |||
67b7e64600 | |||
5c40b534f2 | |||
99b02c16eb | |||
c761c8ba0c | |||
882e1f7452 | |||
553a915027 | |||
ff5963b01d | |||
850b18d34c | |||
2afef1f33d | |||
29adc052c7 | |||
418a0a4e54 | |||
3d934e2e51 | |||
18c23a21a0 | |||
91f5b33e68 | |||
c8bcf9a28d | |||
69d17e29ff | |||
cb0a15e5fb | |||
b153c88cd5 | |||
7c55152cc3 | |||
3cad95d185 | |||
060fd5485e | |||
5fa41f6d85 | |||
a599e72a6b | |||
06a710d1f8 | |||
7b2c8e47dd | |||
a43cb1b390 | |||
ee9b7017f4 | |||
29df30ee82 | |||
76fa9960e0 | |||
e750414f02 | |||
006471bb1e | |||
c4d503f9b8 | |||
81fc3bf2ca | |||
3d1681e811 | |||
4b3ed5c2d5 | |||
28d6a77848 | |||
4139af5673 | |||
fc08c5525c | |||
5c7080a3da | |||
c090779319 | |||
36f93721ad | |||
957827e0e4 | |||
87fc96500a | |||
1a9927e60a | |||
bf13cbfbb7 | |||
ca4f180e7e | |||
6ed8a24745 | |||
5ff3cd67d0 | |||
7d15ff713c | |||
93be4f1891 | |||
79e7a20bd1 | |||
![]() |
79d650adb4 | ||
![]() |
69f0d4adb4 | ||
![]() |
4bc18e0e4c | ||
c75663a5c7 | |||
a025dc2321 | |||
2c6f431ba1 | |||
7aff23d72c | |||
ae46c42daa | |||
bff5b254c2 | |||
1aedec1270 | |||
0c2c709647 | |||
b0c29a6dd4 | |||
97dc93f3aa | |||
7edbeca307 | |||
65b13aced2 | |||
2b7b455f40 | |||
3cff90a31a | |||
023127fa78 | |||
d0b4d00f4b | |||
7529565364 | |||
81de99b015 | |||
78ff0f0c3d | |||
575ee16a87 | |||
fcd4051e90 | |||
f24ec168bf | |||
2cdbc64250 | |||
578aa61082 | |||
1db3c351e5 | |||
8da35d2d4b | |||
13f79986f8 | |||
d9b096c8ed | |||
8cf6df683d | |||
963c1ac9c0 | |||
12be6eb03b | |||
938bb0a52a | |||
09f850fccd | |||
1d1afb0162 | |||
bc73f02c47 | |||
f7462c254e | |||
931bdfcddd | |||
0a77934d8b | |||
![]() |
0d8bae5406 | ||
![]() |
b4f24df882 | ||
![]() |
489ec29184 | ||
899cefb73a | |||
5494d206d4 | |||
![]() |
c3f43f6e71 | ||
![]() |
73232037cc | ||
effcb9ef86 | |||
1e4c74230f | |||
ac30c32fcc | |||
ed8fa0f5b4 | |||
09db75ae58 | |||
e82a42b6a9 | |||
e0cf2f99f9 | |||
cf64e5fa19 | |||
![]() |
80d3739fb7 | ||
d9afe03c53 | |||
8bb861ca31 | |||
a048f3627e | |||
63d23bc447 | |||
3bb04f80eb | |||
117b574410 | |||
f4278ee9f1 | |||
cf17b814a8 | |||
f7e341bf08 | |||
01a71ea4c3 | |||
84140dc7e3 | |||
65e371d16e | |||
ee8e459aed | |||
6d6646ed3b | |||
fe2069a2e8 | |||
8bc05afd6d | |||
90531f1598 | |||
34b6f8e738 | |||
2beb771185 | |||
febe532404 | |||
0c9576039b | |||
e0a64edc14 | |||
8209630370 | |||
17c7bc0512 | |||
98d6dd0d9b | |||
28295b283e | |||
7ad4613fc8 | |||
523810a1da | |||
14d70b22d1 | |||
6f7c26a569 | |||
d9856230e6 | |||
cb32660b7b | |||
c847bd29e1 | |||
1b4124b913 | |||
0e38ea68fe | |||
b1fa25daf1 | |||
b7df7e350b | |||
3b51a615ed | |||
d722c62f49 | |||
988ce1d7c4 | |||
46ee986a9a | |||
b7ecd38f59 | |||
ea9eda3973 | |||
8f6dc2ba11 | |||
48f0011e78 | |||
e0d55b6ab4 | |||
52106d7eeb | |||
ea667a76be | |||
64a01a3d6f | |||
e08cbdf345 | |||
b7e2d1894e | |||
04b6fd0194 | |||
62f1d43ac5 | |||
4f156a3f58 | |||
9acceacdf0 | |||
84cade81df | |||
9cb6d99e90 | |||
71a7619f3a | |||
b912ca5aa5 | |||
ce445ae088 | |||
fb537fdc00 | |||
feb2eb68be | |||
90c803dfa3 | |||
cc9ad36328 | |||
fe78f7ad25 | |||
ba538a2227 | |||
13e2163c66 | |||
1b207e2a17 | |||
63499beb8b | |||
375dcc0114 | |||
7f542de90b | |||
fcbe3b2e78 | |||
ca43557416 | |||
289839651d | |||
68bb70ee72 | |||
a1d711017a | |||
8af8a60bee | |||
3d7ddf3ed8 | |||
d84904e20c | |||
08b738f0f4 | |||
dfe7138438 | |||
d0473366a0 | |||
e6d4141c3b | |||
b9ae686c1f | |||
af61574154 | |||
54ed694271 | |||
ba1deb7b4e | |||
d7f982949a | |||
532869a4a3 | |||
53f5640f02 | |||
4be281fd5f | |||
241bf03b1a | |||
5fbf10b139 | |||
805902ca84 | |||
1695f017b0 | |||
d96d906392 | |||
44e2c1fd4a | |||
9131eb0e44 | |||
007bda30bc | |||
85e021b5ac | |||
15ccb7f0b9 | |||
1b522f2bbf | |||
3749f4bbb9 | |||
4ff469f0ae | |||
189d5ccd14 | |||
f6da015fb7 | |||
9d75dd2168 | |||
447ad7f004 | |||
8d20a262eb | |||
ae098aa1e0 | |||
db8186d055 | |||
beb4bf470d | |||
0e14adaa54 | |||
6dc435ff6c | |||
187f10bdc0 | |||
d91cfeb388 | |||
dc7bb19fd6 | |||
d03743f996 | |||
fefce85997 | |||
0d6259e335 | |||
2ad20e8ccb | |||
3008b88629 | |||
93b1b2476a | |||
1881c22cd3 | |||
c13ec26951 | |||
bd8a8a91f8 | |||
5627819db9 | |||
9796a46ba1 | |||
b94c6c9268 | |||
34d50c58af | |||
420335d7be | |||
65b9e5cb6a | |||
49cbf6ffe5 | |||
60007098a4 | |||
09343106c8 | |||
5c78f808b0 | |||
8c36ddceee | |||
3f19c3852f | |||
e229a1ad1c | |||
a74b2516c7 | |||
33f2e117f6 | |||
b74cde4531 | |||
bc36b98f9a | |||
524b0df0e3 | |||
![]() |
f250bbf9ab | ||
![]() |
ee1365cd4c | ||
29fd557eac | |||
31c260c8ca | |||
9a14f9bc77 | |||
d9621a0416 | |||
5d8ba35a66 | |||
42434c127c | |||
171ed8a087 | |||
96da6a9764 | |||
5ac8aca6df | |||
0deef13b8d | |||
fdbb8366b1 | |||
f18b3ae03e | |||
34fa7a1c1a | |||
485200cd42 | |||
ad2c9aed05 | |||
97f298d8c7 | |||
9135ee31b9 | |||
62e45c3e94 | |||
ec50545e4b | |||
a7a52d9313 | |||
5be03ab8c5 | |||
18aca4254d |
@@ -1,37 +1,44 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- prod
|
||||
jobs:
|
||||
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: http://47.109.37.87:3000/bichangxiong/checkout@v4 # 使用 Gitea 镜像
|
||||
- name: 拉取代码仓库
|
||||
uses: http://git.missmoc.top/mocheng/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1 # 只拉取最新一次提交
|
||||
|
||||
- name: Set up Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
fetch-depth: 0 # 只拉取最新的1个提交(浅克隆)
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: http://git.missmoc.top/mocheng/setup-node@v3
|
||||
with:
|
||||
node-version: 20.x
|
||||
- name: pnpm
|
||||
|
||||
- name: 安装pnpm
|
||||
run: npm i pnpm -g
|
||||
- name: node
|
||||
run: pnpm i
|
||||
- name: Build
|
||||
|
||||
- name: 安装依赖
|
||||
run: pnpm install
|
||||
continue-on-error: false # 依赖安装失败则终止工作流
|
||||
|
||||
- name: 构建项目
|
||||
run: pnpm build:antd
|
||||
- name: copy file via ssh password
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: 192.168.1.3
|
||||
username: root
|
||||
password: by@2025!
|
||||
port: 22
|
||||
source: "./apps/web-antd/dist"
|
||||
target: "/project/wl/web/dist"
|
||||
|
||||
continue-on-error: false # 构建失败则终止工作流
|
||||
|
||||
- name: 检查构建结果
|
||||
run: |
|
||||
if [ ! -d "./apps/web-antd/dist" ]; then
|
||||
echo "构建目录不存在,构建失败"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$(ls -A ./apps/web-antd/dist)" ]; then
|
||||
echo "构建目录为空,构建失败"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
- name: 通过SSH复制文件
|
||||
run: cp -rf ./apps/web-antd/dist/* /www/wwwroot/183.230.235.66_11010/property
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -52,3 +52,4 @@ vite.config.ts.*
|
||||
# 排除自动生成的类型文件
|
||||
apps/web-antd/types/components.d.ts
|
||||
.history
|
||||
apps/web-antd/vite.config.mts
|
||||
|
@@ -1,22 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="description" content="A Modern Back-end Management System" />
|
||||
<meta name="keywords" content="Vben Admin Vue3 Vite" />
|
||||
<meta name="author" content="Vben" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
||||
/>
|
||||
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
|
||||
<title><%= VITE_APP_TITLE %></title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta name="description" content="A Modern Back-end Management System"/>
|
||||
<meta name="keywords" content="Vben Admin Vue3 Vite"/>
|
||||
<meta name="author" content="Vben"/>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
||||
/>
|
||||
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
|
||||
<title><%= VITE_APP_TITLE %></title>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
<script type="text/javascript"
|
||||
src="https://api.map.baidu.com/api?v=3.0&ak=5GUquqE2yrgMo3BPIGcn89dU8uMhnbxG"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -27,6 +27,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons-vue": "^7.0.1",
|
||||
"@dataview/datav-vue3": "0.0.0-test.1672506674342",
|
||||
"@jiaminghi/charts": "^0.2.18",
|
||||
"@jiaminghi/data-view": "^2.10.0",
|
||||
"@tinymce/tinymce-vue": "^6.0.1",
|
||||
"@vben/access": "workspace:*",
|
||||
"@vben/common-ui": "workspace:*",
|
||||
@@ -51,6 +54,7 @@
|
||||
"echarts-gl": "^2.0.9",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"lodash-es": "^4.17.21",
|
||||
"mpegts.js": "^1.8.0",
|
||||
"pinia": "catalog:",
|
||||
"tinymce": "^7.3.0",
|
||||
"unplugin-vue-components": "^0.27.3",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 15 KiB |
48
apps/web-antd/src/api/cockpit/cockpit.ts
Normal file
48
apps/web-antd/src/api/cockpit/cockpit.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 大屏接口
|
||||
*/
|
||||
|
||||
/**
|
||||
* 访客
|
||||
*/
|
||||
export function visitir() {
|
||||
return requestClient.get('/property/cockpit/visitor');
|
||||
}
|
||||
|
||||
/**
|
||||
*费用
|
||||
*/
|
||||
export function expenses() {
|
||||
return requestClient.get('/property/cockpit/expenses');
|
||||
}
|
||||
|
||||
/**
|
||||
* 物业人员配置
|
||||
*/
|
||||
export function propertyPerson() {
|
||||
return requestClient.get('/property/cockpit/propertyperson');
|
||||
}
|
||||
|
||||
/**
|
||||
* sos报警
|
||||
*/
|
||||
export function sos() {
|
||||
return requestClient.get('/property/cockpit/sos');
|
||||
}
|
||||
|
||||
/**
|
||||
* sos报警记录
|
||||
*/
|
||||
export function soslist() {
|
||||
return requestClient.get('/property/cockpit/soslist');
|
||||
}
|
||||
|
||||
/**
|
||||
* 工单
|
||||
*/
|
||||
export function workcount() {
|
||||
return requestClient.get('/property/cockpit/workcount');
|
||||
}
|
@@ -42,6 +42,14 @@ export function applicationAdd(data: ApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/application', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 领用审核
|
||||
* @param data
|
||||
*/
|
||||
export function applicationVerified(data: ApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/application/verified', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产领用
|
||||
* @param data
|
||||
|
@@ -59,7 +59,7 @@ export interface AssetVO {
|
||||
/**
|
||||
* 固定资产类型
|
||||
*/
|
||||
type: number;
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
|
@@ -0,0 +1,76 @@
|
||||
import type {
|
||||
ProcurementApplicationVO,
|
||||
ProcurementApplicationForm,
|
||||
ProcurementApplicationQuery,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationList(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<ProcurementApplicationVO>>(
|
||||
'/property/capitalApplication/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationExport(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return commonExport('/property/capitalApplication/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资产申请详情
|
||||
* @param id id
|
||||
* @returns 资产申请详情
|
||||
*/
|
||||
export function procurementApplicationInfo(id: ID) {
|
||||
return requestClient.get<ProcurementApplicationVO>(
|
||||
`/property/capitalApplication/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationAdd(data: ProcurementApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/capitalApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationUpdate(data: ProcurementApplicationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/capitalApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资产申请
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(
|
||||
`/property/capitalApplication/${id}`,
|
||||
);
|
||||
}
|
213
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
213
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ProcurementApplicationVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
auditOpinion?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
/**
|
||||
* 资产信息
|
||||
*/
|
||||
capitalInfoVoList: any[];
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
auditOpinion?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
capitalInfoBolist?: any;
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,106 @@
|
||||
import type {
|
||||
ArrangementForm,
|
||||
ArrangementQuery,
|
||||
ArrangementVO,
|
||||
arrangmentListQuery,
|
||||
AttendanceUserGroup,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 分页查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
export function arrangementList(params?: ArrangementQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据月份查询排班列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
export function arrangementCalender(params?: ArrangementQuery) {
|
||||
return requestClient.get<any>('/property/arrangement/explore', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询排班详情
|
||||
* @param id id
|
||||
* @returns 排班详情
|
||||
*/
|
||||
export function arrangementInfo(id: ID) {
|
||||
return requestClient.get<ArrangementVO>(`/property/arrangement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增排班
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementAdd(data: ArrangementForm) {
|
||||
return requestClient.postWithMsg<void>('/property/arrangement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新排班
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementUpdate(data: ArrangementForm) {
|
||||
return requestClient.putWithMsg<void>('/property/arrangement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除排班
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function arrangementRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/arrangement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班详情列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function arrangmentList(params?: arrangmentListQuery) {
|
||||
return requestClient.get<PageResult<ArrangementVO>>(
|
||||
'/property/arrangement/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班人员详情列表(班表视图)
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function queryScheduleView(params?: arrangmentListQuery) {
|
||||
return requestClient.get<PageResult<AttendanceUserGroup>>(
|
||||
'/property/AttendanceUserGroup/queryScheduleView',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询某天排班人员详情列表
|
||||
* @param params
|
||||
* @returns 排班列表
|
||||
*/
|
||||
|
||||
export function queryCurrentSchedu() {
|
||||
return requestClient.get<AttendanceUserGroup[]>(
|
||||
'/property/AttendanceUserGroup/query/currentDay',
|
||||
);
|
||||
}
|
150
apps/web-antd/src/api/property/attendanceManagement/arrangement/model.d.ts
vendored
Normal file
150
apps/web-antd/src/api/property/attendanceManagement/arrangement/model.d.ts
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ArrangementVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
userGroupList?: any[];
|
||||
attendanceGroup?: any;
|
||||
dateType?: number;
|
||||
areaList: any[]; //区域
|
||||
}
|
||||
|
||||
export interface ArrangementForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
/**
|
||||
* 排班人员详情
|
||||
*/
|
||||
userGroupList: any[];
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
scheduleId?: string | number;
|
||||
}
|
||||
|
||||
export interface ArrangementQuery extends PageQuery {
|
||||
/**
|
||||
* 排班名称
|
||||
*/
|
||||
scheduleName?: string;
|
||||
|
||||
/**
|
||||
* 考勤组ID
|
||||
*/
|
||||
groupId?: string | number;
|
||||
|
||||
/**
|
||||
* 排班类型:1-固定班制,2-排班制
|
||||
*/
|
||||
scheduleType?: number;
|
||||
|
||||
/**
|
||||
* 日期类型:1-单个日期,2-长期有效,3-期间有效
|
||||
*/
|
||||
dateType?: number;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
startDate?: string;
|
||||
|
||||
/**
|
||||
* 结束日期(仅date_type=3时有效)
|
||||
*/
|
||||
endDate?: string;
|
||||
|
||||
/**
|
||||
* 状态:0-未生效,1-已生效
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
|
||||
/**
|
||||
* 月份
|
||||
*/
|
||||
month?: string;
|
||||
}
|
||||
export interface arrangmentListQuery extends PageQuery {
|
||||
currentDate: string; //某天的日期
|
||||
}
|
||||
export interface AttendanceUserGroup extends PageQuery {
|
||||
currentDate: string; //某天的日期
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { AttendanceAreaVO, AttendanceAreaForm, AttendanceAreaQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询区域区域管理列表
|
||||
* @param params
|
||||
* @returns 区域区域管理列表
|
||||
*/
|
||||
export function attendanceAreaList(params?: AttendanceAreaQuery) {
|
||||
return requestClient.get<PageResult<AttendanceAreaVO>>('/property/attendanceArea/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出区域区域管理列表
|
||||
* @param params
|
||||
* @returns 区域区域管理列表
|
||||
*/
|
||||
export function attendanceAreaExport(params?: AttendanceAreaQuery) {
|
||||
return commonExport('/property/attendanceArea/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询区域区域管理详情
|
||||
* @param id id
|
||||
* @returns 区域区域管理详情
|
||||
*/
|
||||
export function attendanceAreaInfo(id: ID) {
|
||||
return requestClient.get<AttendanceAreaVO>(`/property/attendanceArea/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaAdd(data: AttendanceAreaForm) {
|
||||
return requestClient.postWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaUpdate(data: AttendanceAreaForm) {
|
||||
return requestClient.putWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除区域区域管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/attendanceArea/${id}`);
|
||||
}
|
68
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
68
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AttendanceAreaVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机列表
|
||||
*/
|
||||
deviceManageId: any[];
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark: string;
|
||||
areaDevice?: any[];
|
||||
}
|
||||
|
||||
export interface AttendanceAreaForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceAreaQuery extends PageQuery {
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,74 @@
|
||||
import type { GroupVO, GroupForm, GroupQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询考勤组基本信息列表
|
||||
* @param params
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupList(params?: GroupQuery) {
|
||||
return requestClient.get<PageResult<GroupVO>>('/property/group/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出考勤组基本信息列表
|
||||
* @param params
|
||||
* @returns 考勤组基本信息列表
|
||||
*/
|
||||
export function groupExport(params?: GroupQuery) {
|
||||
return commonExport('/property/group/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询考勤组基本信息详情
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns 考勤组基本信息详情
|
||||
*/
|
||||
export function groupInfo(id: ID,attendanceType:string) {
|
||||
let params={attendanceType}
|
||||
return requestClient.get<GroupVO>(`/property/group/${id}`,{params});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增考勤组基本信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function groupAdd(data: GroupForm) {
|
||||
return requestClient.postWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新考勤组基本信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function groupUpdate(data: GroupForm) {
|
||||
return requestClient.putWithMsg<void>('/property/group', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除考勤组基本信息
|
||||
* @param id id
|
||||
* @param attendanceType 类型
|
||||
* @returns void
|
||||
*/
|
||||
export function groupRemove(id: ID | IDS,attendanceType:string) {
|
||||
let params={attendanceType}
|
||||
return requestClient.deleteWithMsg<void>(`/property/group/${id}`,{params});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取节假日数据
|
||||
* @param year
|
||||
*/
|
||||
export async function getHoliday(year: string) {
|
||||
const response = await fetch(`https://timor.tech/api/holiday/year/${year}`);
|
||||
return response.json();
|
||||
}
|
88
apps/web-antd/src/api/property/attendanceManagement/attendanceGroupSettings/model.d.ts
vendored
Normal file
88
apps/web-antd/src/api/property/attendanceManagement/attendanceGroupSettings/model.d.ts
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface GroupVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType: number| string;
|
||||
|
||||
isAutomatic: boolean;
|
||||
|
||||
clockDateList: any[];
|
||||
|
||||
weekList: any[];
|
||||
|
||||
attendanceList:any[];
|
||||
|
||||
scheduleCycleList:any[];
|
||||
|
||||
}
|
||||
|
||||
export interface GroupForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName?: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface GroupQuery extends PageQuery {
|
||||
/**
|
||||
* 考勤组名称
|
||||
*/
|
||||
groupName?: string;
|
||||
|
||||
/**
|
||||
* 状态(1:启用,0:禁用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 考勤类型(0:固定班制,1:排班制)
|
||||
*/
|
||||
attendanceType?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 假期
|
||||
*/
|
||||
export interface Holiday {
|
||||
holiday: boolean;
|
||||
name: string;
|
||||
date: string;
|
||||
}
|
@@ -0,0 +1,59 @@
|
||||
import type { ShiftVO, ShiftForm, ShiftQuery } from './model';
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询班次表列表
|
||||
* @param params
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftList(params?: ShiftQuery) {
|
||||
return requestClient.get<PageResult<ShiftVO>>('/property/shift/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出班次表列表
|
||||
* @param params
|
||||
* @returns 班次表列表
|
||||
*/
|
||||
export function shiftExport(params?: ShiftQuery) {
|
||||
return commonExport('/property/shift/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询班次表详情
|
||||
* @param id id
|
||||
* @returns 班次表详情
|
||||
*/
|
||||
export function shiftInfo(id: ID) {
|
||||
return requestClient.get<ShiftVO>(`/property/shift/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增班次表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftAdd(data: ShiftForm) {
|
||||
return requestClient.postWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新班次表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftUpdate(data: ShiftForm) {
|
||||
return requestClient.putWithMsg<void>('/property/shift', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除班次表
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function shiftRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/shift/${id}`);
|
||||
}
|
131
apps/web-antd/src/api/property/attendanceManagement/shiftSetting/model.d.ts
vendored
Normal file
131
apps/web-antd/src/api/property/attendanceManagement/shiftSetting/model.d.ts
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import {isArray} from "lodash-es";
|
||||
|
||||
export interface ShiftVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime: string;
|
||||
|
||||
attendanceTimeRange: [any,any];
|
||||
restTimeRange: [any,any];
|
||||
}
|
||||
|
||||
export interface ShiftForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest?: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime?: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime?: string;
|
||||
}
|
||||
|
||||
export interface ShiftQuery extends PageQuery {
|
||||
/**
|
||||
* 班次名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 考勤开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 考勤结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(0:off,1:on)
|
||||
*/
|
||||
status?: string | number;
|
||||
|
||||
/**
|
||||
* 是否休息(0:不休息,1:休息)
|
||||
*/
|
||||
isRest?: number;
|
||||
|
||||
/**
|
||||
* 休息开始时间
|
||||
*/
|
||||
restStartTime?: string;
|
||||
|
||||
/**
|
||||
* 休息结束时间
|
||||
*/
|
||||
restEndTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -29,7 +29,7 @@ export interface BuildingVO {
|
||||
/**
|
||||
* 建筑类型('1:住宅','2:商业','3:混合')
|
||||
*/
|
||||
buildType: number;
|
||||
buildType: string;
|
||||
|
||||
/**
|
||||
* 电梯数量
|
||||
|
@@ -59,3 +59,19 @@ export function workOrdersUpdate(data: WorkOrdersForm) {
|
||||
export function workOrdersRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/workOrders/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 派单
|
||||
* @param data
|
||||
*/
|
||||
export function workOrdersDispatch(data: WorkOrdersForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workOrders/dispatch', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 抢单
|
||||
* @param data
|
||||
*/
|
||||
export function workOrdersGrab(data: WorkOrdersForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workOrders/grab', data);
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface WorkOrdersVO {
|
||||
/**
|
||||
@@ -64,15 +64,59 @@ export interface WorkOrdersVO {
|
||||
/**
|
||||
* 评价
|
||||
*/
|
||||
serviceEvalua: string;
|
||||
serviceEvalua: number;
|
||||
|
||||
/**
|
||||
* 是否超时
|
||||
*/
|
||||
isTimeOut: number;
|
||||
|
||||
workOrdersRecordVoList: HandleRecords[];
|
||||
|
||||
typeName: string;
|
||||
|
||||
initiatorPeople: string;
|
||||
|
||||
handlerText: string;
|
||||
/**
|
||||
* 评价图片
|
||||
*/
|
||||
imgUrl: string;
|
||||
|
||||
evaluateImgPath: string[];
|
||||
/**
|
||||
* 评价内容
|
||||
*/
|
||||
serviceEvaluaText: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
orderImgUrl: string;
|
||||
|
||||
orderImgPath: string[];
|
||||
|
||||
reportingType: string;
|
||||
|
||||
processingWeight: string;
|
||||
|
||||
}
|
||||
|
||||
export interface HandleRecords {
|
||||
status: string;
|
||||
createTime: string;
|
||||
handlerName: string;
|
||||
initiatorPeople: string;
|
||||
}
|
||||
|
||||
|
||||
export interface WorkOrdersForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
@@ -213,7 +257,7 @@ export interface WorkOrdersQuery extends PageQuery {
|
||||
isTimeOut?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
@@ -12,6 +12,22 @@ import { requestClient } from '#/api/request';
|
||||
export function workOrdersTypeList(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<PageResult<WorkOrdersTypeVO>>('/property/workOrdersType/list', { params });
|
||||
}
|
||||
/**
|
||||
* 查询工单类型不分页
|
||||
* @param params
|
||||
* @returns 工单类型管理列表
|
||||
*/
|
||||
export function workOrdersTypeListAll(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<WorkOrdersTypeVO[]>('/property/workOrdersType/queryList', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询工单类型树结构
|
||||
* @param params
|
||||
*/
|
||||
export function workOrdersTypeTree(params?: WorkOrdersTypeQuery) {
|
||||
return requestClient.get<WorkOrdersTypeVO[]>('/property/workOrdersType/typeTree', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出工单类型管理列表
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface WorkOrdersTypeVO {
|
||||
/**
|
||||
@@ -34,7 +34,14 @@ export interface WorkOrdersTypeVO {
|
||||
/**
|
||||
* 是否支持转单(0支持,1不支持)
|
||||
*/
|
||||
isTransfers: number;
|
||||
isTransfers: string;
|
||||
|
||||
excludeId: string;
|
||||
/**
|
||||
* 处理优先级
|
||||
*/
|
||||
processingWeight: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkOrdersTypeForm extends BaseEntity {
|
||||
@@ -72,6 +79,16 @@ export interface WorkOrdersTypeForm extends BaseEntity {
|
||||
* 是否支持转单(0支持,1不支持)
|
||||
*/
|
||||
isTransfers?: number;
|
||||
|
||||
/**
|
||||
* 上级类型id
|
||||
*/
|
||||
parentId?: string;
|
||||
|
||||
/**
|
||||
* 处理优先级
|
||||
*/
|
||||
processingWeight: string;
|
||||
}
|
||||
|
||||
export interface WorkOrdersTypeQuery extends PageQuery {
|
||||
@@ -106,7 +123,12 @@ export interface WorkOrdersTypeQuery extends PageQuery {
|
||||
isTransfers?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
|
||||
/**
|
||||
* 是否过滤子级
|
||||
*/
|
||||
filterSubNodes?: boolean;
|
||||
}
|
||||
|
@@ -59,3 +59,7 @@ export function carChargeUpdate(data: CarChargeForm) {
|
||||
export function carChargeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/carCharge/${id}`);
|
||||
}
|
||||
|
||||
export function carChargeRefund(data: CarChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/carCharge/returnFee', data);
|
||||
}
|
||||
|
@@ -16,6 +16,7 @@ export interface CarChargeVO {
|
||||
*/
|
||||
personId: string | number;
|
||||
|
||||
chargeItem:string
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
@@ -55,6 +56,10 @@ export interface CarChargeVO {
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
amountReceivable?:any;
|
||||
chargeStatus:any;
|
||||
payType:any;
|
||||
chargeCycle:any
|
||||
|
||||
}
|
||||
|
||||
@@ -167,3 +172,5 @@ export interface CarChargeQuery extends PageQuery {
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -144,6 +144,16 @@ export interface Clean_orderForm extends BaseEntity {
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 签到图片
|
||||
*/
|
||||
signImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 评价图片
|
||||
*/
|
||||
imgUrl?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface Clean_orderQuery extends PageQuery {
|
||||
|
@@ -42,6 +42,10 @@ export function houseChargeAdd(data: HouseChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/houseCharge', data);
|
||||
}
|
||||
|
||||
export function houseChargeRefund(data: HouseChargeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/houseCharge/returnFee', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新房屋收费
|
||||
* @param data
|
||||
|
@@ -58,6 +58,8 @@ export interface HouseChargeVO {
|
||||
costItemsVo: CostItemSettingVO;
|
||||
|
||||
chargeStatus: string;
|
||||
|
||||
personId: string;
|
||||
}
|
||||
|
||||
export interface HouseChargeForm extends BaseEntity {
|
||||
|
@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 费用-水电抄列表
|
||||
*/
|
||||
export function costMeterWaterList(params?: CostMeterWaterQuery) {
|
||||
return requestClient.get<PageResult<CostMeterWaterVO>>('/property/costMeterWater/list', { params });
|
||||
return requestClient.get<PageResult<CostMeterWaterVO>>('/property/meterWater/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ export function costMeterWaterExport(params?: CostMeterWaterQuery) {
|
||||
* @returns 费用-水电抄详情
|
||||
*/
|
||||
export function costMeterWaterInfo(id: ID) {
|
||||
return requestClient.get<CostMeterWaterVO>(`/property/costMeterWater/${id}`);
|
||||
return requestClient.get<CostMeterWaterVO>(`/property/meterWater/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ export function costMeterWaterInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterAdd(data: CostMeterWaterForm) {
|
||||
return requestClient.postWithMsg<void>('/property/costMeterWater', data);
|
||||
return requestClient.postWithMsg<void>('/property/meterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +48,7 @@ export function costMeterWaterAdd(data: CostMeterWaterForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterUpdate(data: CostMeterWaterForm) {
|
||||
return requestClient.putWithMsg<void>('/property/costMeterWater', data);
|
||||
return requestClient.putWithMsg<void>('/property/meterWater', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,5 +57,10 @@ export function costMeterWaterUpdate(data: CostMeterWaterForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function costMeterWaterRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/costMeterWater/${id}`);
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterWater/${id}`);
|
||||
}
|
||||
|
||||
// 根据业主id查询
|
||||
export function ultimoWater(id: ID | IDS) {
|
||||
return requestClient.get<any>(`/property/meterWater/ultimoWater/${id}`);
|
||||
}
|
@@ -51,6 +51,8 @@ export interface CostMeterWaterVO {
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
costType:string;
|
||||
userId:string;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { ActivitiesVO, ActivitiesForm, ActivitiesQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询热门活动列表
|
||||
* @param params
|
||||
* @returns 热门活动列表
|
||||
*/
|
||||
export function activitiesList(params?: ActivitiesQuery) {
|
||||
return requestClient.get<PageResult<ActivitiesVO>>('/property/activities/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出热门活动列表
|
||||
* @param params
|
||||
* @returns 热门活动列表
|
||||
*/
|
||||
export function activitiesExport(params?: ActivitiesQuery) {
|
||||
return commonExport('/property/activities/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询热门活动详情
|
||||
* @param id id
|
||||
* @returns 热门活动详情
|
||||
*/
|
||||
export function activitiesInfo(id: ID) {
|
||||
return requestClient.get<ActivitiesVO>(`/property/activities/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增热门活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesAdd(data: ActivitiesForm) {
|
||||
return requestClient.postWithMsg<void>('/property/activities', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新热门活动
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesUpdate(data: ActivitiesForm) {
|
||||
return requestClient.putWithMsg<void>('/property/activities', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除热门活动
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function activitiesRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/activities/${id}`);
|
||||
}
|
129
apps/web-antd/src/api/property/customerService/activities/model.d.ts
vendored
Normal file
129
apps/web-antd/src/api/property/customerService/activities/model.d.ts
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ActivitiesVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivitiesForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ActivitiesQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 头部照片
|
||||
*/
|
||||
headImgUrl?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 活动内容
|
||||
*/
|
||||
activeContent?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.未开始 2.进行中 3.已结束)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询客户服务工单看板统计
|
||||
* @param params
|
||||
* @returns
|
||||
*/
|
||||
export function countsList(params?:any) {
|
||||
return requestClient.get('/property/customerServece/counts', { params });
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { ContingenPlanVO, ContingenPlanForm, ContingenPlanQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询应急预案管理列表
|
||||
* @param params
|
||||
* @returns 应急预案管理列表
|
||||
*/
|
||||
export function contingenPlanList(params?: ContingenPlanQuery) {
|
||||
return requestClient.get<PageResult<ContingenPlanVO>>('/property/contingenPlan/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出应急预案管理列表
|
||||
* @param params
|
||||
* @returns 应急预案管理列表
|
||||
*/
|
||||
export function contingenPlanExport(params?: ContingenPlanQuery) {
|
||||
return commonExport('/property/contingenPlan/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应急预案管理详情
|
||||
* @param id id
|
||||
* @returns 应急预案管理详情
|
||||
*/
|
||||
export function contingenPlanInfo(id: ID) {
|
||||
return requestClient.get<ContingenPlanVO>(`/property/contingenPlan/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanAdd(data: ContingenPlanForm) {
|
||||
return requestClient.postWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新应急预案管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanUpdate(data: ContingenPlanForm) {
|
||||
return requestClient.putWithMsg<void>('/property/contingenPlan', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除应急预案管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function contingenPlanRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/contingenPlan/${id}`);
|
||||
}
|
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/property/customerService/contingenPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ContingenPlanVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ContingenPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 预案类型(1.自然灾害,2事故灾难3公共卫生,4社会安全)
|
||||
*/
|
||||
contingenPlanType?: string;
|
||||
|
||||
/**
|
||||
* 预案名称
|
||||
*/
|
||||
contingenPlanName?: string;
|
||||
|
||||
/**
|
||||
* 预案内容
|
||||
*/
|
||||
contingenPlanContent?: string;
|
||||
|
||||
/**
|
||||
* 发起人
|
||||
*/
|
||||
initiat?: string;
|
||||
|
||||
/**
|
||||
* 责任人
|
||||
*/
|
||||
dutyPersion?: number;
|
||||
|
||||
/**
|
||||
* 风险等级
|
||||
*/
|
||||
grade?: number;
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
*/
|
||||
compleTimes?: string;
|
||||
|
||||
/**
|
||||
* 状态(1.待审核2待进行3已完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { FaqManagementVO, FaqManagementForm, FaqManagementQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询常见问题管理列表
|
||||
* @param params
|
||||
* @returns 常见问题管理列表
|
||||
*/
|
||||
export function faqManagementList(params?: FaqManagementQuery) {
|
||||
return requestClient.get<PageResult<FaqManagementVO>>('/property/faqManagement/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出常见问题管理列表
|
||||
* @param params
|
||||
* @returns 常见问题管理列表
|
||||
*/
|
||||
export function faqManagementExport(params?: FaqManagementQuery) {
|
||||
return commonExport('/property/faqManagement/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询常见问题管理详情
|
||||
* @param id id
|
||||
* @returns 常见问题管理详情
|
||||
*/
|
||||
export function faqManagementInfo(id: ID) {
|
||||
return requestClient.get<FaqManagementVO>(`/property/faqManagement/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增常见问题管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementAdd(data: FaqManagementForm) {
|
||||
return requestClient.postWithMsg<void>('/property/faqManagement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新常见问题管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementUpdate(data: FaqManagementForm) {
|
||||
return requestClient.putWithMsg<void>('/property/faqManagement', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除常见问题管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function faqManagementRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/faqManagement/${id}`);
|
||||
}
|
114
apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts
vendored
Normal file
114
apps/web-antd/src/api/property/customerService/faqManagement/model.d.ts
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface FaqManagementVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FaqManagementForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView?: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FaqManagementQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 浏览量
|
||||
*/
|
||||
pageView?: number;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
contents?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿 2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { FeedbacksVO, FeedbacksForm, FeedbacksQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询意见反馈列表
|
||||
* @param params
|
||||
* @returns 意见反馈列表
|
||||
*/
|
||||
export function feedbacksList(params?: FeedbacksQuery) {
|
||||
return requestClient.get<PageResult<FeedbacksVO>>('/property/feedbacks/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出意见反馈列表
|
||||
* @param params
|
||||
* @returns 意见反馈列表
|
||||
*/
|
||||
export function feedbacksExport(params?: FeedbacksQuery) {
|
||||
return commonExport('/property/feedbacks/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询意见反馈详情
|
||||
* @param id id
|
||||
* @returns 意见反馈详情
|
||||
*/
|
||||
export function feedbacksInfo(id: ID) {
|
||||
return requestClient.get<FeedbacksVO>(`/property/feedbacks/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增意见反馈
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksAdd(data: FeedbacksForm) {
|
||||
return requestClient.postWithMsg<void>('/property/feedbacks', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新意见反馈
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksUpdate(data: FeedbacksForm) {
|
||||
return requestClient.putWithMsg<void>('/property/feedbacks', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除意见反馈
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function feedbacksRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/feedbacks/${id}`);
|
||||
}
|
174
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
174
apps/web-antd/src/api/property/customerService/feedbacks/model.d.ts
vendored
Normal file
@@ -0,0 +1,174 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
|
||||
export interface FeedbacksVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType: string;
|
||||
feedbackTypeName: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone: string;
|
||||
|
||||
/**
|
||||
* 反馈人名称
|
||||
*/
|
||||
feedbackPersionName: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName: string;
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
orderId: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FeedbacksForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType?: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion?: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone?: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent?: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation?: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg?: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName?: string;
|
||||
|
||||
/**
|
||||
* 工单id
|
||||
*/
|
||||
orderId?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FeedbacksQuery extends PageQuery {
|
||||
/**
|
||||
* 反馈类型(0保修1保洁2会议)
|
||||
*/
|
||||
feedbackType?: string;
|
||||
|
||||
/**
|
||||
* 反馈人
|
||||
*/
|
||||
feedbackPersion?: number;
|
||||
|
||||
/**
|
||||
* 反馈人电话
|
||||
*/
|
||||
feedbackPersionPhone?: string;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
feedbackContent?: string;
|
||||
|
||||
/**
|
||||
* 反馈位置
|
||||
*/
|
||||
feedbackLocation?: string;
|
||||
|
||||
/**
|
||||
* 反馈图片
|
||||
*/
|
||||
feedbackImg?: string;
|
||||
|
||||
/**
|
||||
* 是否转至工单
|
||||
*/
|
||||
isWorkOrder?: string;
|
||||
|
||||
/**
|
||||
* 状态(1待处理2处理中3处理完成)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 客服电话
|
||||
*/
|
||||
serviceName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { NoticesVO, NoticesForm, NoticesQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询客户服务-通知公告列表
|
||||
* @param params
|
||||
* @returns 客户服务-通知公告列表
|
||||
*/
|
||||
export function noticesList(params?: NoticesQuery) {
|
||||
return requestClient.get<PageResult<NoticesVO>>('/property/notices/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户服务-通知公告列表
|
||||
* @param params
|
||||
* @returns 客户服务-通知公告列表
|
||||
*/
|
||||
export function noticesExport(params?: NoticesQuery) {
|
||||
return commonExport('/property/notices/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户服务-通知公告详情
|
||||
* @param id id
|
||||
* @returns 客户服务-通知公告详情
|
||||
*/
|
||||
export function noticesInfo(id: ID) {
|
||||
return requestClient.get<NoticesVO>(`/property/notices/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户服务-通知公告
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesAdd(data: NoticesForm) {
|
||||
return requestClient.postWithMsg<void>('/property/notices', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新客户服务-通知公告
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesUpdate(data: NoticesForm) {
|
||||
return requestClient.putWithMsg<void>('/property/notices', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户服务-通知公告
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function noticesRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/notices/${id}`);
|
||||
}
|
139
apps/web-antd/src/api/property/customerService/notices/model.d.ts
vendored
Normal file
139
apps/web-antd/src/api/property/customerService/notices/model.d.ts
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface NoticesVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers: number;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticesForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface NoticesQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 是否全小区公告
|
||||
*/
|
||||
isAll?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
afficheContent?: string;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
issuers?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionVO, QuestionForm, QuestionQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题列表
|
||||
*/
|
||||
export function questionList(params?: QuestionQuery) {
|
||||
return requestClient.get<PageResult<QuestionVO>>('/property/question/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷问题列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题列表
|
||||
*/
|
||||
export function questionExport(params?: QuestionQuery) {
|
||||
return commonExport('/property/question/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题详情
|
||||
* @param id id
|
||||
* @returns 调查问卷问题详情
|
||||
*/
|
||||
export function questionInfo(id: ID) {
|
||||
return requestClient.get<QuestionVO>(`/property/question/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionAdd(data: QuestionForm) {
|
||||
return requestClient.postWithMsg<void>('/property/question', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷问题
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionUpdate(data: QuestionForm) {
|
||||
return requestClient.putWithMsg<void>('/property/question', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/question/${id}`);
|
||||
}
|
145
apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts
vendored
Normal file
145
apps/web-antd/src/api/property/customerService/questionnaire/question/model.d.ts
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
import type {PageQuery, BaseEntity} from '#/api/common';
|
||||
import type {
|
||||
QuestionItemForm, QuestionItemVO
|
||||
} from "#/api/property/customerService/questionnaire/questionItem/model";
|
||||
|
||||
export interface QuestionVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 问题选项
|
||||
*/
|
||||
questionnaireQuestionItemVos: QuestionItemVO[];
|
||||
|
||||
options: string[];
|
||||
|
||||
answer: string;
|
||||
|
||||
rate:number;
|
||||
|
||||
checked:string[];
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 选项
|
||||
*/
|
||||
questionnaireQuestionItems: QuestionItemForm[]
|
||||
|
||||
/**
|
||||
* 评分预览
|
||||
*/
|
||||
rate?: number;
|
||||
|
||||
/**
|
||||
* 时间预览
|
||||
*/
|
||||
dateTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionQuery extends PageQuery {
|
||||
/**
|
||||
* 调查问卷id
|
||||
*/
|
||||
questionnaireId?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 问题类型(1单行文本2多行文本3单选题4多选题5评分题6日期选择)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 是否必填(1不必填2必填)
|
||||
*/
|
||||
isRequired?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionItemVO, QuestionItemForm, QuestionItemQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题选项列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题选项列表
|
||||
*/
|
||||
export function questionItemList(params?: QuestionItemQuery) {
|
||||
return requestClient.get<PageResult<QuestionItemVO>>('/property/questionItem/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷问题选项列表
|
||||
* @param params
|
||||
* @returns 调查问卷问题选项列表
|
||||
*/
|
||||
export function questionItemExport(params?: QuestionItemQuery) {
|
||||
return commonExport('/property/questionItem/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷问题选项详情
|
||||
* @param id id
|
||||
* @returns 调查问卷问题选项详情
|
||||
*/
|
||||
export function questionItemInfo(id: ID) {
|
||||
return requestClient.get<QuestionItemVO>(`/property/questionItem/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷问题选项
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemAdd(data: QuestionItemForm) {
|
||||
return requestClient.postWithMsg<void>('/property/questionItem', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷问题选项
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemUpdate(data: QuestionItemForm) {
|
||||
return requestClient.putWithMsg<void>('/property/questionItem', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷问题选项
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionItemRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/questionItem/${id}`);
|
||||
}
|
79
apps/web-antd/src/api/property/customerService/questionnaire/questionItem/model.d.ts
vendored
Normal file
79
apps/web-antd/src/api/property/customerService/questionnaire/questionItem/model.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface QuestionItemVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionItemForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId?: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionItemQuery extends PageQuery {
|
||||
/**
|
||||
* 问题id
|
||||
*/
|
||||
questionId?: string | number;
|
||||
|
||||
/**
|
||||
* 选项内容
|
||||
*/
|
||||
itemContent?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { QuestionnaireVO, QuestionnaireForm, QuestionnaireQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询调查问卷列表
|
||||
* @param params
|
||||
* @returns 调查问卷列表
|
||||
*/
|
||||
export function questionnaireList(params?: QuestionnaireQuery) {
|
||||
return requestClient.get<PageResult<QuestionnaireVO>>('/property/questionnaire/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出调查问卷列表
|
||||
* @param params
|
||||
* @returns 调查问卷列表
|
||||
*/
|
||||
export function questionnaireExport(params?: QuestionnaireQuery) {
|
||||
return commonExport('/property/questionnaire/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询调查问卷详情
|
||||
* @param id id
|
||||
* @returns 调查问卷详情
|
||||
*/
|
||||
export function questionnaireInfo(id: ID) {
|
||||
return requestClient.get<QuestionnaireVO>(`/property/questionnaire/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增调查问卷
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireAdd(data: QuestionnaireForm) {
|
||||
return requestClient.postWithMsg<void>('/property/questionnaire', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新调查问卷
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireUpdate(data: QuestionnaireForm) {
|
||||
return requestClient.putWithMsg<void>('/property/questionnaire', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除调查问卷
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function questionnaireRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/questionnaire/${id}`);
|
||||
}
|
126
apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts
vendored
Normal file
126
apps/web-antd/src/api/property/customerService/questionnaire/questionnaire/model.d.ts
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type {
|
||||
QuestionForm,
|
||||
QuestionVO
|
||||
} from "#/api/property/customerService/questionnaire/question/model";
|
||||
|
||||
export interface QuestionnaireVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* 问题
|
||||
*/
|
||||
questionnaireQuestionVos:QuestionVO[];
|
||||
}
|
||||
|
||||
export interface QuestionnaireForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec?: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit?: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 问题
|
||||
*/
|
||||
questionnaireQuestions:QuestionForm[];
|
||||
|
||||
}
|
||||
|
||||
export interface QuestionnaireQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
head?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 是否匿名收集
|
||||
*/
|
||||
isAnonyCollec?: string;
|
||||
|
||||
/**
|
||||
* 是否多次提交
|
||||
*/
|
||||
isCommit?: string;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
deadline?: string;
|
||||
|
||||
/**
|
||||
* 状态(1草稿2已发布3未发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,79 @@
|
||||
import type { LightInfoVO, LightInfoForm, LightInfoQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询灯控开关信息列表
|
||||
* @param params
|
||||
* @returns 灯控开关信息列表
|
||||
*/
|
||||
export function lightInfoList(params?: LightInfoQuery) {
|
||||
return requestClient.get<PageResult<LightInfoVO>>('/property/lightInfo/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出灯控开关信息列表
|
||||
* @param params
|
||||
* @returns 灯控开关信息列表
|
||||
*/
|
||||
export function lightInfoExport(params?: LightInfoQuery) {
|
||||
return commonExport('/property/lightInfo/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询灯控开关信息详情
|
||||
* @param id id
|
||||
* @returns 灯控开关信息详情
|
||||
*/
|
||||
export function lightInfoInfo(id: ID) {
|
||||
return requestClient.get<LightInfoVO>(`/property/lightInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增灯控开关信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoAdd(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新灯控开关信息
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoUpdate(data: LightInfoForm) {
|
||||
return requestClient.putWithMsg<void>('/property/lightInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除灯控开关信息
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function lightInfoRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/lightInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新灯控开关状态
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function switchSingleLight(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo/switch', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新灯控开关状态
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function switchBatchLight(data: LightInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/lightInfo/switch', data);
|
||||
}
|
134
apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts
vendored
Normal file
134
apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface LightInfoVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn: boolean;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId: string | number;
|
||||
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floorName: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LightInfoForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark?: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn: boolean;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId?: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface LightInfoQuery extends PageQuery {
|
||||
/**
|
||||
* 位置描述
|
||||
*/
|
||||
locationRemark?: string;
|
||||
|
||||
/**
|
||||
* 开关状态(0:关,1:开)
|
||||
*/
|
||||
isOn?: number;
|
||||
|
||||
/**
|
||||
* 灯控模块编码
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityId?: string | number;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 单元编码
|
||||
*/
|
||||
unitId?: string | number;
|
||||
|
||||
/**
|
||||
* 所属楼层ID
|
||||
*/
|
||||
floorId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { MeterInfoVO, MeterInfoForm, MeterInfoQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterInfoList(params?: MeterInfoQuery) {
|
||||
return requestClient.get<PageResult<MeterInfoVO>>('/property/meterInfo/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterInfoExport(params?: MeterInfoQuery) {
|
||||
return commonExport('/property/meterInfo/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询水电气详情
|
||||
* @param id id
|
||||
* @returns 水电气详情
|
||||
*/
|
||||
export function meterInfoInfo(id: ID) {
|
||||
return requestClient.get<MeterInfoVO>(`/property/meterInfo/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoAdd(data: MeterInfoForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meterInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoUpdate(data: MeterInfoForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meterInfo', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水电气
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterInfoRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meterInfo/${id}`);
|
||||
}
|
184
apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts
vendored
Normal file
184
apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MeterInfoVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName: string;
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType: number;
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit: number;
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation: string;
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading: number;
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterInfoForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit?: number;
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation?: string;
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading?: number;
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterInfoQuery extends PageQuery {
|
||||
/**
|
||||
* 仪表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 仪表编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 计量单位(1-度,2-吨,3-立方米)
|
||||
*/
|
||||
meterUnit?: number;
|
||||
|
||||
/**
|
||||
* 安装位置
|
||||
*/
|
||||
installLocation?: string;
|
||||
|
||||
/**
|
||||
* 初始读数
|
||||
*/
|
||||
initReading?: number;
|
||||
|
||||
/**
|
||||
* 最大量程
|
||||
*/
|
||||
maxRang?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -61,6 +61,8 @@ export interface MaintainPlanVO {
|
||||
userId: string[];
|
||||
|
||||
machineMaintainPlanStaffBoList:any[];
|
||||
|
||||
machineMaintainPlanStaffVos:any[];
|
||||
}
|
||||
|
||||
export interface MaintainPlanForm extends BaseEntity {
|
||||
|
@@ -61,9 +61,9 @@ export function floorRemove(id: ID | IDS) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据单元ID查询楼层
|
||||
* 根据楼层ID查询楼层
|
||||
* @param id id
|
||||
*/
|
||||
export function queryByUnitId(id: ID | IDS) {
|
||||
return requestClient.get<FloorVO[]>(`/property/floor/queryByUnitId/${id}`);
|
||||
export function queryByBuildingId(id: ID | IDS) {
|
||||
return requestClient.get<FloorVO[]>(`/property/floor/queryByBuildingId/${id}`);
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { TaskDetailVO, TaskDetailForm, TaskDetailQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailList(params?: TaskDetailQuery) {
|
||||
return requestClient.get<PageResult<TaskDetailVO>>('/property/taskDetail/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出巡检明细列表
|
||||
* @param params
|
||||
* @returns 巡检明细列表
|
||||
*/
|
||||
export function taskDetailExport(params?: TaskDetailQuery) {
|
||||
return commonExport('/property/taskDetail/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询巡检明细详情
|
||||
* @param id id
|
||||
* @returns 巡检明细详情
|
||||
*/
|
||||
export function taskDetailInfo(id: ID) {
|
||||
return requestClient.get<TaskDetailVO>(`/property/taskDetail/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailAdd(data: TaskDetailForm) {
|
||||
return requestClient.postWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新巡检明细
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailUpdate(data: TaskDetailForm) {
|
||||
return requestClient.putWithMsg<void>('/property/taskDetail', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除巡检明细
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function taskDetailRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/taskDetail/${id}`);
|
||||
}
|
334
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
334
apps/web-antd/src/api/property/inspectionManagement/inspectionDetail/model.d.ts
vendored
Normal file
@@ -0,0 +1,334 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface TaskDetailVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage?: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults?: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc?: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface TaskDetailQuery extends PageQuery {
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
taskId?: string | number;
|
||||
|
||||
/**
|
||||
* 路线id
|
||||
*/
|
||||
routeId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检计划id
|
||||
*/
|
||||
planId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检点id
|
||||
*/
|
||||
pointId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检方式
|
||||
*/
|
||||
patrolType?: string;
|
||||
|
||||
/**
|
||||
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||
*/
|
||||
signType?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
actualInspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 实际签到状态(1已签到2.未签到)
|
||||
*/
|
||||
actualSignState?: string;
|
||||
|
||||
/**
|
||||
* 巡检状态(0未完成,1已完成)
|
||||
*/
|
||||
inspectionState?: string;
|
||||
|
||||
/**
|
||||
* 巡检图片
|
||||
*/
|
||||
inspectionImage?: string;
|
||||
|
||||
/**
|
||||
* 计划巡检人
|
||||
*/
|
||||
planInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检人
|
||||
*/
|
||||
actualInspectionPerson?: string;
|
||||
|
||||
/**
|
||||
* 任务状态
|
||||
*/
|
||||
taskStatus?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResults?: string;
|
||||
|
||||
/**
|
||||
* 巡检描述
|
||||
*/
|
||||
inspectionDesc?: string;
|
||||
|
||||
/**
|
||||
* 巡检位置
|
||||
*/
|
||||
inspectionLocation?: string;
|
||||
|
||||
/**
|
||||
* 实际巡检时间
|
||||
*/
|
||||
inspectionTime?: string;
|
||||
|
||||
/**
|
||||
* 点开始时间
|
||||
*/
|
||||
pointStartTime?: string;
|
||||
|
||||
/**
|
||||
* 点结束时间
|
||||
*/
|
||||
pointEndTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -19,7 +19,7 @@ export interface InspectionPlanVO {
|
||||
/**
|
||||
* 巡检周期
|
||||
*/
|
||||
inspectionPlanPeriod: number;
|
||||
inspectionPlanPeriod: string;
|
||||
|
||||
/**
|
||||
* 任务提前分组
|
||||
|
@@ -46,6 +46,10 @@ export interface InspectionPointVO {
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
itemName: string;
|
||||
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface InspectionPointForm extends BaseEntity {
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { KnowledgeVO, KnowledgeForm, KnowledgeQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询维保知识管理列表
|
||||
* @param params
|
||||
* @returns 维保知识管理列表
|
||||
*/
|
||||
export function knowledgeList(params?: KnowledgeQuery) {
|
||||
return requestClient.get<PageResult<KnowledgeVO>>('/property/knowledge/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出维保知识管理列表
|
||||
* @param params
|
||||
* @returns 维保知识管理列表
|
||||
*/
|
||||
export function knowledgeExport(params?: KnowledgeQuery) {
|
||||
return commonExport('/property/knowledge/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询维保知识管理详情
|
||||
* @param id id
|
||||
* @returns 维保知识管理详情
|
||||
*/
|
||||
export function knowledgeInfo(id: ID) {
|
||||
return requestClient.get<KnowledgeVO>(`/property/knowledge/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增维保知识管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeAdd(data: KnowledgeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/knowledge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新维保知识管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeUpdate(data: KnowledgeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/knowledge', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除维保知识管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function knowledgeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/knowledge/${id}`);
|
||||
}
|
131
apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts
vendored
Normal file
131
apps/web-antd/src/api/property/maintenance/knowledge/model.d.ts
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface KnowledgeVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers: string;
|
||||
|
||||
coversPath: string|undefined;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
}
|
||||
|
||||
export interface KnowledgeForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers?: string;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime?: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface KnowledgeQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 状态(0草稿1状态2已发布)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 封面
|
||||
*/
|
||||
covers?: string;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
depict?: string;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
releaseTime?: string;
|
||||
|
||||
/**
|
||||
* 位置类型(0操作指引,1处理案例2常见问题)
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -1,61 +0,0 @@
|
||||
import type { MeterVO, MeterForm, MeterQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterList(params?: MeterQuery) {
|
||||
return requestClient.get<PageResult<MeterVO>>('/property/meter/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出水电气列表
|
||||
* @param params
|
||||
* @returns 水电气列表
|
||||
*/
|
||||
export function meterExport(params?: MeterQuery) {
|
||||
return commonExport('/property/meter/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询水电气详情
|
||||
* @param id id
|
||||
* @returns 水电气详情
|
||||
*/
|
||||
export function meterInfo(id: ID) {
|
||||
return requestClient.get<MeterVO>(`/property/meter/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterAdd(data: MeterForm) {
|
||||
return requestClient.postWithMsg<void>('/property/meter', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新水电气
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function meterUpdate(data: MeterForm) {
|
||||
return requestClient.putWithMsg<void>('/property/meter', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水电气
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function meterRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/meter/${id}`);
|
||||
}
|
229
apps/web-antd/src/api/property/meter/model.d.ts
vendored
229
apps/web-antd/src/api/property/meter/model.d.ts
vendored
@@ -1,229 +0,0 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface MeterVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose?: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType?: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display?: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay?: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeterQuery extends PageQuery {
|
||||
/**
|
||||
* 水表名称
|
||||
*/
|
||||
meterName?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
*/
|
||||
meterCode?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
meterType?: number;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
meterPurpose?: number;
|
||||
|
||||
/**
|
||||
* 分摊类型(1-不公摊,2-按分表用量,3-按租客面积,4-按房源数量,5-按固定比例)
|
||||
*/
|
||||
shareType?: number;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
*/
|
||||
display?: number;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
maxDisplay?: number;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
*/
|
||||
billingRate?: number;
|
||||
|
||||
/**
|
||||
* 剩余量
|
||||
*/
|
||||
surplus?: number;
|
||||
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
communicationState?: number;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
runningState?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { LeaveApplicationVO, LeaveApplicationForm, LeaveApplicationQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询请假申请列表
|
||||
* @param params
|
||||
* @returns 请假申请列表
|
||||
*/
|
||||
export function leaveApplicationList(params?: LeaveApplicationQuery) {
|
||||
return requestClient.get<PageResult<LeaveApplicationVO>>('/property/leaveApplication/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出请假申请列表
|
||||
* @param params
|
||||
* @returns 请假申请列表
|
||||
*/
|
||||
export function leaveApplicationExport(params?: LeaveApplicationQuery) {
|
||||
return commonExport('/property/leaveApplication/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询请假申请详情
|
||||
* @param id id
|
||||
* @returns 请假申请详情
|
||||
*/
|
||||
export function leaveApplicationInfo(id: ID) {
|
||||
return requestClient.get<LeaveApplicationVO>(`/property/leaveApplication/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增请假申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationAdd(data: LeaveApplicationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/leaveApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新请假申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationUpdate(data: LeaveApplicationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/leaveApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除请假申请
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function leaveApplicationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/leaveApplication/${id}`);
|
||||
}
|
189
apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts
vendored
Normal file
189
apps/web-antd/src/api/property/personalCenter/leaveApplication/model.d.ts
vendored
Normal file
@@ -0,0 +1,189 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface LeaveApplicationVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LeaveApplicationForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username?: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId?: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName?: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration?: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface LeaveApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 用户ID,关联用户表
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
username?: string;
|
||||
|
||||
/**
|
||||
* 部门ID,关联部门表
|
||||
*/
|
||||
departmentId?: string | number;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
departmentName?: string;
|
||||
|
||||
/**
|
||||
* 请假类型
|
||||
*/
|
||||
leaveType?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 合计时间,如3天5个小时
|
||||
*/
|
||||
totalDuration?: string;
|
||||
|
||||
/**
|
||||
* 请假事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
import type { WorkflowDefinitionVO, WorkflowDefinitionForm, WorkflowDefinitionQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询流程定义列表
|
||||
* @param params
|
||||
* @returns 流程定义列表
|
||||
*/
|
||||
export function workflowDefinitionList(params?: WorkflowDefinitionQuery) {
|
||||
return requestClient.get<PageResult<WorkflowDefinitionVO>>('/property/workflowDefinition/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出流程定义列表
|
||||
* @param params
|
||||
* @returns 流程定义列表
|
||||
*/
|
||||
export function workflowDefinitionExport(params?: WorkflowDefinitionQuery) {
|
||||
return commonExport('/property/workflowDefinition/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询流程定义详情
|
||||
* @param id id
|
||||
* @returns 流程定义详情
|
||||
*/
|
||||
export function workflowDefinitionInfo(id: ID) {
|
||||
return requestClient.get<WorkflowDefinitionVO>(`/property/workflowDefinition/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增流程定义
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionAdd(data: WorkflowDefinitionForm) {
|
||||
return requestClient.postWithMsg<void>('/property/workflowDefinition', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新流程定义
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionUpdate(data: WorkflowDefinitionForm) {
|
||||
return requestClient.putWithMsg<void>('/property/workflowDefinition', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除流程定义
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function workflowDefinitionRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/workflowDefinition/${id}`);
|
||||
}
|
129
apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts
vendored
Normal file
129
apps/web-antd/src/api/property/personalCenter/workflowDefinition/model.d.ts
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface WorkflowDefinitionVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkflowDefinitionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover?: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkflowDefinitionQuery extends PageQuery {
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 流程状态(0:审批不通过,1:审批通过,2:审批中,3已取消)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 当前审批人
|
||||
*/
|
||||
currentApprover?: string;
|
||||
|
||||
/**
|
||||
* 审批建议
|
||||
*/
|
||||
workflowSuggestion?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -26,6 +26,8 @@ export interface PropertyVO {
|
||||
*/
|
||||
imgPath: string;
|
||||
|
||||
plantImg: string;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
@@ -102,7 +104,6 @@ export interface PropertyForm extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PropertyQuery extends PageQuery {
|
||||
@@ -178,6 +179,8 @@ export interface plantsProduct extends BaseEntity {
|
||||
*/
|
||||
imgPath?: string;
|
||||
|
||||
plantImg: string |undefined;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import type { PersonVO, PersonForm, PersonQuery } from './model';
|
||||
import type { PersonVO, PersonForm, PersonQuery, PerssonImportParam } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { commonExport, ContentTypeEnum } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
@@ -59,3 +59,54 @@ export function personUpdate(data: PersonForm) {
|
||||
export function personRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/person/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 从excel导入用户
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personImportData(data: PerssonImportParam) {
|
||||
return requestClient.post<{ code: number; msg: string }>(
|
||||
'/property/person/importData',
|
||||
data,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': ContentTypeEnum.FORM_DATA,
|
||||
},
|
||||
isTransformResponse: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入人脸
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function personImportFace(data: PerssonImportParam) {
|
||||
return requestClient.post<{ code: number; msg: string }>(
|
||||
'/property/person/importFace',
|
||||
data,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': ContentTypeEnum.FORM_DATA,
|
||||
},
|
||||
isTransformResponse: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载用户导入模板
|
||||
* @returns blob
|
||||
*/
|
||||
export function downloadImportTemplate() {
|
||||
return requestClient.post<Blob>(
|
||||
'/property/person/importTemplate',
|
||||
{},
|
||||
{
|
||||
isTransformResponse: false,
|
||||
responseType: 'blob',
|
||||
},
|
||||
);
|
||||
}
|
||||
|
@@ -1,70 +1,89 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type { PageQuery, BaseEntity } from '#/api/common'
|
||||
|
||||
export interface PersonVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
userId: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName: string;
|
||||
userName: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: string;
|
||||
phone: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender: number;
|
||||
gender: string | number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img: string;
|
||||
img: string
|
||||
|
||||
imgPath?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId: string | number;
|
||||
unitId: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName: string;
|
||||
unitName: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon: string;
|
||||
locathon: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
time: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber: string;
|
||||
carNumber: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number|string;
|
||||
state: number | string
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
remark: string
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number
|
||||
|
||||
authBegDate?: string
|
||||
|
||||
authEndDate?: string
|
||||
|
||||
authTime: any[]
|
||||
|
||||
rosterType?: string | number
|
||||
|
||||
email?: string
|
||||
|
||||
idCard?: string
|
||||
|
||||
}
|
||||
|
||||
@@ -72,196 +91,219 @@ export interface PersonForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
id?: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
userId?: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
userName?: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
phone?: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
gender?: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
img?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
unitId?: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
unitName?: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
locathon?: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
time?: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
carNumber?: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
state?: number
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
remark?: string
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number
|
||||
|
||||
authBegDate?: string
|
||||
|
||||
authEndDate?: string
|
||||
}
|
||||
|
||||
export interface PersonQuery extends PageQuery {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
userId?: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName?: string;
|
||||
userName?: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
phone?: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender?: number;
|
||||
gender?: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img?: string;
|
||||
img?: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId?: string | number;
|
||||
unitId?: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName?: string;
|
||||
unitName?: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon?: string;
|
||||
locathon?: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time?: string;
|
||||
time?: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber?: string;
|
||||
carNumber?: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
state?: number
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
params?: any
|
||||
}
|
||||
|
||||
export interface Person extends BaseEntity{
|
||||
export interface Person extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string | number
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
userId: string | number
|
||||
|
||||
/**
|
||||
* 用户名称
|
||||
*/
|
||||
userName: string;
|
||||
userName: string
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone: string;
|
||||
phone: string
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
gender: number;
|
||||
gender: number
|
||||
|
||||
/**
|
||||
* 人脸图片
|
||||
*/
|
||||
img: string;
|
||||
img: string
|
||||
|
||||
/**
|
||||
* 所属单位id
|
||||
*/
|
||||
unitId: string | number;
|
||||
unitId: string | number
|
||||
|
||||
/**
|
||||
* 所属单位名称
|
||||
*/
|
||||
unitName: string;
|
||||
unitName: string
|
||||
|
||||
/**
|
||||
* 入驻位置
|
||||
*/
|
||||
locathon: string;
|
||||
locathon: string
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
*/
|
||||
time: string;
|
||||
time: string
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
carNumber: string;
|
||||
carNumber: string
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
state: number
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
remark: string
|
||||
|
||||
idCard: string
|
||||
|
||||
email: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 用户导入
|
||||
* @param updateSupport 是否覆盖数据
|
||||
* @param unitId 单位Id
|
||||
* @param file excel文件
|
||||
*/
|
||||
export interface PerssonImportParam {
|
||||
updateSupport: boolean
|
||||
unitId: number
|
||||
file: Blob | File
|
||||
}
|
||||
|
@@ -35,6 +35,7 @@ export interface Resident_unitVO {
|
||||
* 入驻位置
|
||||
*/
|
||||
location: string;
|
||||
locations: string[];
|
||||
|
||||
/**
|
||||
* 入驻时间
|
||||
@@ -56,6 +57,19 @@ export interface Resident_unitVO {
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 权限组id
|
||||
*/
|
||||
authGroupId?: string | number;
|
||||
|
||||
/**
|
||||
* 权限组名称
|
||||
*/
|
||||
authGroupName?: string;
|
||||
// 授权期限
|
||||
authBegDate?:string;//开始
|
||||
authEndDate?:string;//结束
|
||||
|
||||
}
|
||||
|
||||
export interface Resident_unitForm extends BaseEntity {
|
||||
|
@@ -19,7 +19,7 @@ export interface RoomVO {
|
||||
/**
|
||||
* 房间类型('住宅','商铺','办公室','设备间','公共区域')
|
||||
*/
|
||||
roomType: number;
|
||||
roomType: string;
|
||||
|
||||
/**
|
||||
* 建筑面积(平方米)
|
||||
@@ -49,7 +49,7 @@ export interface RoomVO {
|
||||
/**
|
||||
* 状态('空置','已售','已租','自用')
|
||||
*/
|
||||
status: number;
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -40,6 +40,10 @@ export interface AttachVO {
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
quantity: number;
|
||||
|
||||
meetAttachId: string;
|
||||
}
|
||||
|
||||
export interface AttachForm extends BaseEntity {
|
||||
|
@@ -61,5 +61,5 @@ export function meetRemove(id: ID | IDS) {
|
||||
}
|
||||
|
||||
export function notlist(params?: MeetBo) {
|
||||
return requestClient.get<PageResult<MeetVO>>('/property/meet/notlist', { params });
|
||||
return requestClient.get<MeetVO[]>('/property/meet/notlist', { params });
|
||||
}
|
||||
|
@@ -67,6 +67,29 @@ export interface MeetVO {
|
||||
* 图片
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
pictureArr: string[];
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
/**
|
||||
* 会议室类型
|
||||
*/
|
||||
meetingRoomType: string;
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
locationName: string;
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
principalsName: string;
|
||||
}
|
||||
|
||||
export interface MeetForm extends BaseEntity {
|
||||
@@ -153,6 +176,17 @@ export interface MeetForm extends BaseEntity {
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
pictureArr: string[];
|
||||
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetQuery extends PageQuery {
|
||||
@@ -240,7 +274,7 @@ export interface MeetQuery extends PageQuery {
|
||||
picture: string;
|
||||
}
|
||||
|
||||
export interface conferenceSettingsDetail extends BaseEntity {
|
||||
export interface ConferenceSettingsDetail{
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@@ -329,6 +363,16 @@ export interface conferenceSettingsDetail extends BaseEntity {
|
||||
* 图片
|
||||
*/
|
||||
picture: string;
|
||||
|
||||
/**
|
||||
* 开放时段开始时间
|
||||
*/
|
||||
openStartHours: string;
|
||||
/**
|
||||
* 开放时段结束时间
|
||||
*/
|
||||
openEndHours: string;
|
||||
|
||||
}
|
||||
|
||||
export interface MeetBo{
|
||||
|
@@ -1,4 +1,9 @@
|
||||
import type { RoomBookingVO, RoomBookingForm, RoomBookingQuery,GetMeetNameVO } from './model';
|
||||
import type {
|
||||
RoomBookingVO,
|
||||
RoomBookingForm,
|
||||
RoomBookingQuery,
|
||||
GetMeetNameVO,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
@@ -7,21 +12,26 @@ import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询会议室名称列表
|
||||
* @param getMeetName 后端约定传'getMeetName'
|
||||
* @returns 会议室名称列表
|
||||
*/
|
||||
* 查询会议室名称列表
|
||||
* @param getMeetName 后端约定传'getMeetName'
|
||||
* @returns 会议室名称列表
|
||||
*/
|
||||
export function getMeetName() {
|
||||
return requestClient.get<PageResult<GetMeetNameVO>>(`/property/enum-fetcher/enum-values/${'getMeetName'}`);
|
||||
return requestClient.get<GetMeetNameVO[]>(
|
||||
`/property/enum-fetcher/enum-values/${'getMeetName'}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会议管理列表
|
||||
* @param params
|
||||
* @returns 会议管理列表
|
||||
*/
|
||||
* 查询会议管理列表
|
||||
* @param params
|
||||
* @returns 会议管理列表
|
||||
*/
|
||||
export function roomBookingList(params?: RoomBookingQuery) {
|
||||
return requestClient.get<PageResult<RoomBookingVO>>('/property/roomBooking/list', { params });
|
||||
return requestClient.get<PageResult<RoomBookingVO>>(
|
||||
'/property/roomBooking/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,10 +79,15 @@ export function roomBookingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/roomBooking/${id}`);
|
||||
}
|
||||
/**
|
||||
* 按照日期查询已预约会议预约记录列表
|
||||
* @param params
|
||||
* @returns 会议预约列表
|
||||
*/
|
||||
export function meetbookingAppointmentList(params?: MeetbookingAppointmentQuery) {
|
||||
return requestClient.get<PageResult<MeetbookingVO>>('/property/meetbooking/appointment-list', { params });
|
||||
}
|
||||
* 按照日期查询已预约会议预约记录列表
|
||||
* @param params
|
||||
* @returns 会议预约列表
|
||||
*/
|
||||
export function meetbookingAppointmentList(
|
||||
params?: MeetbookingAppointmentQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<MeetbookingVO>>(
|
||||
'/property/meetbooking/appointment-list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
@@ -70,6 +70,10 @@ export interface VisitorManagementVO {
|
||||
* 预约状态(0:待确认,1:已确认,2:已取消,3:已完成)
|
||||
*/
|
||||
serveStatus: number;
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
idCard: string;
|
||||
}
|
||||
|
||||
export interface VisitorManagementForm extends BaseEntity {
|
||||
|
@@ -240,6 +240,10 @@ function createRequestClient(baseURL: string) {
|
||||
// 不再执行下面逻辑
|
||||
throw new Error(_msg);
|
||||
}
|
||||
case 403: {
|
||||
window.location.href = msg;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (msg) {
|
||||
timeoutMsg = msg;
|
||||
|
@@ -2,12 +2,12 @@ import type {
|
||||
AccessControlForm,
|
||||
AccessControlQuery,
|
||||
AccessControlVO,
|
||||
} from './model'
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common'
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper'
|
||||
import { requestClient } from '#/api/request'
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询门禁管理列表
|
||||
@@ -18,7 +18,7 @@ export function accessControlList(params?: AccessControlQuery) {
|
||||
return requestClient.get<PageResult<AccessControlVO>>(
|
||||
'/sis/accessControl/list',
|
||||
{ params },
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ export function accessControlList(params?: AccessControlQuery) {
|
||||
* @returns 门禁管理列表
|
||||
*/
|
||||
export function accessControlExport(params?: AccessControlQuery) {
|
||||
return commonExport('/sis/accessControl/export', params ?? {})
|
||||
return commonExport('/sis/accessControl/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +36,7 @@ export function accessControlExport(params?: AccessControlQuery) {
|
||||
* @returns 门禁管理详情
|
||||
*/
|
||||
export function accessControlInfo(id: ID) {
|
||||
return requestClient.get<AccessControlVO>(`/sis/accessControl/${id}`)
|
||||
return requestClient.get<AccessControlVO>(`/sis/accessControl/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,7 +45,7 @@ export function accessControlInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlAdd(data: AccessControlForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/accessControl', data)
|
||||
return requestClient.postWithMsg<void>('/sis/accessControl', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ export function accessControlAdd(data: AccessControlForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlUpdate(data: AccessControlForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/accessControl', data)
|
||||
return requestClient.putWithMsg<void>('/sis/accessControl', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ export function accessControlUpdate(data: AccessControlForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`)
|
||||
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,7 +71,7 @@ export function accessControlRemove(id: ID | IDS) {
|
||||
* @returns void
|
||||
*/
|
||||
export function queryTree() {
|
||||
return requestClient.get<TreeNode<Number>[]>(`/sis/accessControl/tree`)
|
||||
return requestClient.get<TreeNode<Number>[]>(`/sis/accessControl/tree`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,5 +79,12 @@ export function queryTree() {
|
||||
* @returns void
|
||||
*/
|
||||
export function accessControlSync() {
|
||||
return requestClient.get<void>(`/sis/accessControl/sync`)
|
||||
return requestClient.get<void>(`/sis/accessControl/sync`);
|
||||
}
|
||||
|
||||
export function remoteOpenDoor(params: any) {
|
||||
return requestClient.post<void>(
|
||||
`/sis/accessControl/e8/remoteOpenDoor`,
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
77
apps/web-antd/src/api/sis/alarmEventAttachments/index.ts
Normal file
77
apps/web-antd/src/api/sis/alarmEventAttachments/index.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
import type {
|
||||
AlarmEventAttachmentsForm,
|
||||
AlarmEventAttachmentsQuery,
|
||||
AlarmEventAttachmentsVO,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventAttachmentsList(params?: AlarmEventAttachmentsQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventAttachmentsVO>>(
|
||||
'/sis/alarmEventAttachments/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
export function queryAlarmEventAttachmentsList(id: ID) {
|
||||
return requestClient.get<AlarmEventAttachmentsVO[]>(
|
||||
'/sis/alarmEventAttachments/query/' + id,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventAttachmentsExport(
|
||||
params?: AlarmEventAttachmentsQuery,
|
||||
) {
|
||||
return commonExport('/sis/alarmEventAttachments/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】详情
|
||||
* @param id id
|
||||
* @returns 【请填写功能名称】详情
|
||||
*/
|
||||
export function alarmEventAttachmentsInfo(id: ID) {
|
||||
return requestClient.get<AlarmEventAttachmentsVO>(
|
||||
`/sis/alarmEventAttachments/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsAdd(data: AlarmEventAttachmentsForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/alarmEventAttachments', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsUpdate(data: AlarmEventAttachmentsForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/alarmEventAttachments', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventAttachmentsRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/alarmEventAttachments/${id}`);
|
||||
}
|
71
apps/web-antd/src/api/sis/alarmEventAttachments/model.d.ts
vendored
Normal file
71
apps/web-antd/src/api/sis/alarmEventAttachments/model.d.ts
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AlarmEventAttachmentsVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId: string | number;
|
||||
|
||||
imagePath: string;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventAttachmentsForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId?: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventAttachmentsQuery extends PageQuery {
|
||||
/**
|
||||
* 事件id
|
||||
*/
|
||||
eventId?: string | number;
|
||||
|
||||
/**
|
||||
* 时间图片id
|
||||
*/
|
||||
ossId?: string | number;
|
||||
|
||||
/**
|
||||
* 1:图片,2:文件;3视频
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
61
apps/web-antd/src/api/sis/alarmEventProcess/index.ts
Normal file
61
apps/web-antd/src/api/sis/alarmEventProcess/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { AlarmEventProcessVO, AlarmEventProcessForm, AlarmEventProcessQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询告警信息处理流程记录列表
|
||||
* @param params
|
||||
* @returns 告警信息处理流程记录列表
|
||||
*/
|
||||
export function alarmEventProcessList(params?: AlarmEventProcessQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventProcessVO>>('/sis/alarmEventProcess/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出告警信息处理流程记录列表
|
||||
* @param params
|
||||
* @returns 告警信息处理流程记录列表
|
||||
*/
|
||||
export function alarmEventProcessExport(params?: AlarmEventProcessQuery) {
|
||||
return commonExport('/sis/alarmEventProcess/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询告警信息处理流程记录详情
|
||||
* @param id id
|
||||
* @returns 告警信息处理流程记录详情
|
||||
*/
|
||||
export function alarmEventProcessInfo(id: ID) {
|
||||
return requestClient.get<AlarmEventProcessVO>(`/sis/alarmEventProcess/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增告警信息处理流程记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessAdd(data: AlarmEventProcessForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/alarmEventProcess', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新告警信息处理流程记录
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessUpdate(data: AlarmEventProcessForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/alarmEventProcess', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除告警信息处理流程记录
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventProcessRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/alarmEventProcess/${id}`);
|
||||
}
|
147
apps/web-antd/src/api/sis/alarmEventProcess/model.d.ts
vendored
Normal file
147
apps/web-antd/src/api/sis/alarmEventProcess/model.d.ts
vendored
Normal file
@@ -0,0 +1,147 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AlarmEventProcessVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventProcessForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName?: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply?: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime?: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag?: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventProcessQuery extends PageQuery {
|
||||
/**
|
||||
* 告警记录主键id
|
||||
*/
|
||||
alarmId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员id
|
||||
*/
|
||||
solveId?: string | number;
|
||||
|
||||
/**
|
||||
* 指派人员名称
|
||||
*/
|
||||
solveName?: string;
|
||||
|
||||
/**
|
||||
* 工单问题回复内容
|
||||
*/
|
||||
workReply?: string;
|
||||
|
||||
/**
|
||||
* 处理时间
|
||||
*/
|
||||
workReplyTime?: string;
|
||||
|
||||
/**
|
||||
* 是否已接受任务 0:未接收;1:已接收
|
||||
*/
|
||||
receiveTaskTag?: number;
|
||||
|
||||
/**
|
||||
* 10: 已上报待确认
|
||||
20:已确认待处理
|
||||
30: 处理中
|
||||
31:升级-转工单
|
||||
32:升级-协助
|
||||
40:已解决
|
||||
50:已关闭
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
95
apps/web-antd/src/api/sis/alarmEvents/index.ts
Normal file
95
apps/web-antd/src/api/sis/alarmEvents/index.ts
Normal file
@@ -0,0 +1,95 @@
|
||||
import type { AlarmEventsForm, AlarmEventsQuery, AlarmEventsVO } from './model';
|
||||
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventsList(params?: AlarmEventsQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventsVO>>('/sis/alarmEvents/list', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventsListCurr(params?: AlarmEventsQuery) {
|
||||
return requestClient.get<PageResult<AlarmEventsVO>>('/sis/alarmEvents/list/curr', {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出【请填写功能名称】列表
|
||||
* @param params
|
||||
* @returns 【请填写功能名称】列表
|
||||
*/
|
||||
export function alarmEventsExport(params?: AlarmEventsQuery) {
|
||||
return commonExport('/sis/alarmEvents/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】详情
|
||||
* @param id id
|
||||
* @returns 【请填写功能名称】详情
|
||||
*/
|
||||
export function alarmEventsInfo(id: ID) {
|
||||
return requestClient.get<AlarmEventsVO>(`/sis/alarmEvents/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventsAdd(data: AlarmEventsForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/alarmEvents', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新【请填写功能名称】
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventsUpdate(data: AlarmEventsForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/alarmEvents', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventsRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/alarmEvents/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 告警指派
|
||||
* @returns void
|
||||
*/
|
||||
export function taskAssignment(params: any) {
|
||||
return requestClient.postWithMsg<void>(
|
||||
`/sis/alarmEvents/assignment`,
|
||||
params ?? {},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 告警处理完成
|
||||
* @returns void
|
||||
*/
|
||||
export function alarmEventComplete(params: any) {
|
||||
return requestClient.postWithMsg<void>(
|
||||
`/sis/alarmEvents/complete`,
|
||||
params ?? {},
|
||||
);
|
||||
}
|
159
apps/web-antd/src/api/sis/alarmEvents/model.d.ts
vendored
Normal file
159
apps/web-antd/src/api/sis/alarmEvents/model.d.ts
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AlarmEventsVO {
|
||||
/**
|
||||
* 报警记录ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 报警事件类型
|
||||
*/
|
||||
type: number;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
*/
|
||||
level: number;
|
||||
|
||||
/**
|
||||
* 报警设备ip
|
||||
*/
|
||||
deviceIp: string;
|
||||
|
||||
/**
|
||||
* 报警设备名称
|
||||
*/
|
||||
deviceName: string;
|
||||
|
||||
/**
|
||||
* 设备所属区域id
|
||||
*/
|
||||
deviceGroupId: string | number;
|
||||
|
||||
/**
|
||||
* 设备所属区域名称
|
||||
*/
|
||||
deviceGroupName: string;
|
||||
|
||||
/**
|
||||
* 设备告警时间
|
||||
*/
|
||||
reportTime: string;
|
||||
|
||||
/**
|
||||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 工单id,需要state=3才会写入
|
||||
*/
|
||||
workOrderId: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventsForm extends BaseEntity {
|
||||
/**
|
||||
* 报警记录ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 报警事件类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
*/
|
||||
level?: number;
|
||||
|
||||
/**
|
||||
* 报警设备ip
|
||||
*/
|
||||
deviceIp?: string;
|
||||
|
||||
/**
|
||||
* 报警设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备所属区域id
|
||||
*/
|
||||
deviceGroupId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备所属区域名称
|
||||
*/
|
||||
deviceGroupName?: string;
|
||||
|
||||
/**
|
||||
* 设备告警时间
|
||||
*/
|
||||
reportTime?: string;
|
||||
|
||||
/**
|
||||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 工单id,需要state=3才会写入
|
||||
*/
|
||||
workOrderId?: string | number;
|
||||
|
||||
}
|
||||
|
||||
export interface AlarmEventsQuery extends PageQuery {
|
||||
/**
|
||||
* 报警事件类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||||
*/
|
||||
level?: number;
|
||||
|
||||
/**
|
||||
* 报警设备ip
|
||||
*/
|
||||
deviceIp?: string;
|
||||
|
||||
/**
|
||||
* 报警设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备所属区域id
|
||||
*/
|
||||
deviceGroupId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备所属区域名称
|
||||
*/
|
||||
deviceGroupName?: string;
|
||||
|
||||
/**
|
||||
* 设备告警时间
|
||||
*/
|
||||
reportTime?: string;
|
||||
|
||||
/**
|
||||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 工单id,需要state=3才会写入
|
||||
*/
|
||||
workOrderId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
61
apps/web-antd/src/api/sis/authGroup/index.ts
Normal file
61
apps/web-antd/src/api/sis/authGroup/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { AuthGroupVO, AuthGroupForm, AuthGroupQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询授权组列表
|
||||
* @param params
|
||||
* @returns 授权组列表
|
||||
*/
|
||||
export function authGroupList(params?: AuthGroupQuery) {
|
||||
return requestClient.get<PageResult<AuthGroupVO>>('/sis/authGroup/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出授权组列表
|
||||
* @param params
|
||||
* @returns 授权组列表
|
||||
*/
|
||||
export function authGroupExport(params?: AuthGroupQuery) {
|
||||
return commonExport('/sis/authGroup/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询授权组详情
|
||||
* @param id id
|
||||
* @returns 授权组详情
|
||||
*/
|
||||
export function authGroupInfo(id: ID) {
|
||||
return requestClient.get<AuthGroupVO>(`/sis/authGroup/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增授权组
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function authGroupAdd(data: AuthGroupForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/authGroup', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新授权组
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function authGroupUpdate(data: AuthGroupForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/authGroup', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除授权组
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function authGroupRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/authGroup/${id}`);
|
||||
}
|
79
apps/web-antd/src/api/sis/authGroup/model.d.ts
vendored
Normal file
79
apps/web-antd/src/api/sis/authGroup/model.d.ts
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AuthGroupVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 权限名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 面向对象(1-单位、2-个人)
|
||||
*/
|
||||
groupType: number;
|
||||
|
||||
/**
|
||||
* 是否启用(0:禁用,1启用)
|
||||
*/
|
||||
isEnable: boolean;
|
||||
|
||||
/**
|
||||
* 设备id
|
||||
*/
|
||||
acIds?: string[] | number[];
|
||||
|
||||
/**
|
||||
* 楼层id
|
||||
*/
|
||||
floorIds?: string[] | number[];
|
||||
|
||||
}
|
||||
|
||||
export interface AuthGroupForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 权限名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 面向对象(1-单位、2-个人)
|
||||
*/
|
||||
groupType?: number;
|
||||
|
||||
acIds?: string[] | number[];
|
||||
|
||||
eleIds?: string[] | number[];
|
||||
|
||||
floorIds?: string[] | number[];
|
||||
}
|
||||
|
||||
export interface AuthGroupQuery extends PageQuery {
|
||||
/**
|
||||
* 权限名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 面向对象(1-单位、2-个人)
|
||||
*/
|
||||
groupType?: number;
|
||||
|
||||
/**
|
||||
* 是否启用(0:禁用,1启用)
|
||||
*/
|
||||
isEnable?: boolean;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
@@ -28,7 +28,7 @@ export interface AuthRecordForm extends BaseEntity {
|
||||
/**
|
||||
* 设备ids
|
||||
*/
|
||||
deviceIds?: string[] | number[];
|
||||
deviceIds?: any[];
|
||||
}
|
||||
|
||||
export interface AuthRecordQuery extends PageQuery {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type { BaseEntity, PageQuery } from '#/api/common';
|
||||
|
||||
export interface DeviceChannelVO {
|
||||
/**
|
||||
@@ -51,6 +51,13 @@ export interface DeviceChannelVO {
|
||||
*/
|
||||
channelNo: string;
|
||||
|
||||
nvrId: string;
|
||||
nvrFactoryNo: string;
|
||||
nvrIp: string;
|
||||
nvrPort: number;
|
||||
nvrAccount: string;
|
||||
nvrPwd: string;
|
||||
nvrChannelNo: string;
|
||||
}
|
||||
|
||||
export interface DeviceChannelForm extends BaseEntity {
|
||||
@@ -103,7 +110,6 @@ export interface DeviceChannelForm extends BaseEntity {
|
||||
* 设备通道编号
|
||||
*/
|
||||
channelNo?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DeviceChannelQuery extends PageQuery {
|
||||
@@ -153,7 +159,7 @@ export interface DeviceChannelQuery extends PageQuery {
|
||||
channelNo?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
@@ -80,6 +80,15 @@ export interface DeviceManageVO {
|
||||
* 门禁id
|
||||
*/
|
||||
accessControlId: string | number;
|
||||
|
||||
/**
|
||||
* 楼层id
|
||||
*/
|
||||
floorId: string | number;
|
||||
|
||||
lon: number;
|
||||
|
||||
lat: number;
|
||||
}
|
||||
|
||||
export interface DeviceManageForm extends BaseEntity {
|
||||
@@ -123,6 +132,10 @@ export interface DeviceManageForm extends BaseEntity {
|
||||
*/
|
||||
deviceMac?: string;
|
||||
|
||||
lon: number;
|
||||
|
||||
lat: number;
|
||||
|
||||
/**
|
||||
* 设备在线状态 0:离线 1:在线 2:未知
|
||||
*/
|
||||
@@ -165,6 +178,10 @@ export interface DeviceManageQuery extends PageQuery {
|
||||
*/
|
||||
deviceMac?: string;
|
||||
|
||||
lon?: number;
|
||||
|
||||
lat?: number;
|
||||
|
||||
/**
|
||||
* 设备在线状态 0:离线 1:在线 2:未知
|
||||
*/
|
||||
|
@@ -59,22 +59,3 @@ export function elevatorInfoUpdate(data: ElevatorInfoForm) {
|
||||
export function elevatorInfoRemove(elevatorId: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/elevatorInfo/${elevatorId}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电梯⇄楼层关联
|
||||
* @param params
|
||||
* @returns void
|
||||
*/
|
||||
export function refAdd(data: ElevatorFloorRefForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/elevatorInfo/ref/add', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电梯⇄楼层关联
|
||||
* @param id
|
||||
* @returns void
|
||||
*/
|
||||
export function refQuery(id: ID) {
|
||||
return requestClient.get<ElevatorFloorRefVo[]>(`/sis/elevatorInfo/ref/${id}`);
|
||||
}
|
||||
|
||||
|
@@ -96,6 +96,22 @@ export interface ElevatorInfoVO {
|
||||
*/
|
||||
controlPwd: string
|
||||
|
||||
elevatorControlDeviceId: {
|
||||
value: number,
|
||||
deviceIp: string,
|
||||
deviceId: number,
|
||||
}
|
||||
|
||||
remoteCallElevatorDeviceId: {
|
||||
value: number,
|
||||
deviceIp: string,
|
||||
deviceId: number,
|
||||
}[]
|
||||
|
||||
/**
|
||||
* 建筑ID
|
||||
*/
|
||||
buildingId?: number | string
|
||||
}
|
||||
|
||||
export interface ElevatorInfoForm extends BaseEntity {
|
||||
@@ -195,10 +211,9 @@ export interface ElevatorInfoForm extends BaseEntity {
|
||||
controlPwd?: string
|
||||
|
||||
/**
|
||||
* 单元ID
|
||||
* 建筑ID
|
||||
*/
|
||||
unitId?: number
|
||||
|
||||
buildingId?: number
|
||||
}
|
||||
|
||||
export interface ElevatorInfoQuery extends PageQuery {
|
||||
@@ -299,9 +314,9 @@ export interface ElevatorInfoQuery extends PageQuery {
|
||||
}
|
||||
|
||||
export interface ElevatorFloorRefVo {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*/
|
||||
elevatorId: string | number
|
||||
|
||||
/**
|
||||
|
@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
|
||||
* @returns 厂商管理列表
|
||||
*/
|
||||
export function factoryList(params?: FactoryQuery) {
|
||||
return requestClient.get<PageResult<FactoryVO>>('/property/factory/list', { params });
|
||||
return requestClient.get<PageResult<FactoryVO>>('/sis/factory/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,7 +21,7 @@ export function factoryList(params?: FactoryQuery) {
|
||||
* @returns 厂商管理列表
|
||||
*/
|
||||
export function factoryExport(params?: FactoryQuery) {
|
||||
return commonExport('/property/factory/export', params ?? {});
|
||||
return commonExport('/sis/factory/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ export function factoryExport(params?: FactoryQuery) {
|
||||
* @returns 厂商管理详情
|
||||
*/
|
||||
export function factoryInfo(id: ID) {
|
||||
return requestClient.get<FactoryVO>(`/property/factory/${id}`);
|
||||
return requestClient.get<FactoryVO>(`/sis/factory/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +39,7 @@ export function factoryInfo(id: ID) {
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryAdd(data: FactoryForm) {
|
||||
return requestClient.postWithMsg<void>('/property/factory', data);
|
||||
return requestClient.postWithMsg<void>('/sis/factory', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +48,7 @@ export function factoryAdd(data: FactoryForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryUpdate(data: FactoryForm) {
|
||||
return requestClient.putWithMsg<void>('/property/factory', data);
|
||||
return requestClient.putWithMsg<void>('/sis/factory', data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,5 +57,5 @@ export function factoryUpdate(data: FactoryForm) {
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/factory/${id}`);
|
||||
return requestClient.deleteWithMsg<void>(`/sis/factory/${id}`);
|
||||
}
|
32
apps/web-antd/src/api/sis/stream/index.ts
Normal file
32
apps/web-antd/src/api/sis/stream/index.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { AddStreamProxyResult } from './model';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 添加拉流代理,如果成功会返回可播放的视频流地址
|
||||
* @param params
|
||||
* @returns 人像信息列表
|
||||
*/
|
||||
export function addStreamProxy(params?: any) {
|
||||
return requestClient.post<AddStreamProxyResult>(
|
||||
'sis/stream/realtime/add',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
export function addFFmpegStreamProxy(params?: any) {
|
||||
return requestClient.post<AddStreamProxyResult>(
|
||||
'sis/stream/FFmpeg/proxy',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
export function addMediaStreamProxy(params?: any) {
|
||||
return requestClient.post<AddStreamProxyResult>('sis/stream/proxy', params);
|
||||
}
|
||||
|
||||
export function addFFmpegMediaStreamProxy(params?: any) {
|
||||
return requestClient.post<AddStreamProxyResult>(
|
||||
'sis/stream/ffmpeg/proxy',
|
||||
params,
|
||||
);
|
||||
}
|
22
apps/web-antd/src/api/sis/stream/model.d.ts
vendored
Normal file
22
apps/web-antd/src/api/sis/stream/model.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export interface AddStreamProxyResult {
|
||||
key:string;
|
||||
rtsp:string;
|
||||
rtmp:string;
|
||||
flv:string;
|
||||
wsFlv:string;
|
||||
mp4:string;
|
||||
hls:string;
|
||||
}
|
||||
|
||||
export interface AddStreamProxyQuery {
|
||||
videoIp:string;
|
||||
videoPort:number;
|
||||
factoryNo:string;
|
||||
account:string;
|
||||
pwd:string;
|
||||
channelId:string;
|
||||
startTime:string;
|
||||
endTime:string;
|
||||
stream:string;
|
||||
|
||||
}
|
61
apps/web-antd/src/api/system/funList/index.ts
Normal file
61
apps/web-antd/src/api/system/funList/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { FunListVO, FunListForm, FunListQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询APP功能列表列表
|
||||
* @param params
|
||||
* @returns APP功能列表列表
|
||||
*/
|
||||
export function funListList(params?: FunListQuery) {
|
||||
return requestClient.get<PageResult<FunListVO>>('/system/funList/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出APP功能列表列表
|
||||
* @param params
|
||||
* @returns APP功能列表列表
|
||||
*/
|
||||
export function funListExport(params?: FunListQuery) {
|
||||
return commonExport('/system/funList/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询APP功能列表详情
|
||||
* @param id id
|
||||
* @returns APP功能列表详情
|
||||
*/
|
||||
export function funListInfo(id: ID) {
|
||||
return requestClient.get<FunListVO>(`/system/funList/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增APP功能列表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function funListAdd(data: FunListForm) {
|
||||
return requestClient.postWithMsg<void>('/system/funList', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新APP功能列表
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function funListUpdate(data: FunListForm) {
|
||||
return requestClient.putWithMsg<void>('/system/funList', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除APP功能列表
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function funListRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/system/funList/${id}`);
|
||||
}
|
84
apps/web-antd/src/api/system/funList/model.d.ts
vendored
Normal file
84
apps/web-antd/src/api/system/funList/model.d.ts
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface FunListVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
roleid: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
icon: string;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
url: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FunListForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
roleid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
icon?: string;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FunListQuery extends PageQuery {
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
roleid?: string | number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* icon
|
||||
*/
|
||||
icon?: string;
|
||||
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
url?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
15
apps/web-antd/src/api/types.ts
Normal file
15
apps/web-antd/src/api/types.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
interface PageParam {
|
||||
[key: string]: any;
|
||||
pageNo: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
interface PageResult<T> {
|
||||
list: T[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
export type {
|
||||
PageParam,
|
||||
PageResult
|
||||
};
|
BIN
apps/web-antd/src/assets/222.jpg
Normal file
BIN
apps/web-antd/src/assets/222.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
BIN
apps/web-antd/src/assets/222.png
Normal file
BIN
apps/web-antd/src/assets/222.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 MiB |
BIN
apps/web-antd/src/assets/algorithmManagement/image.png
Normal file
BIN
apps/web-antd/src/assets/algorithmManagement/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 91 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user