Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
191d0ffc
提交
191d0ffc
authored
6月 12, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
http://git.mmcuav.cn/root/sharefly-admin-uav
into develop
上级
c685968c
d7ef41fc
隐藏空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
68 行增加
和
62 行删除
+68
-62
Dockerfile
Dockerfile
+1
-0
deployment.yaml
kustomization/base/deployment.yaml
+1
-7
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
commonType.ts
src/api/interface/commonType.ts
+2
-0
orderManageType.ts
src/api/interface/orderManageType.ts
+2
-1
produceManageType.ts
src/api/interface/produceManageType.ts
+1
-0
common.ts
src/api/modules/common.ts
+4
-1
index.tsx
...ponents/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
+12
-13
index.tsx
src/components/uploader/index.tsx
+8
-4
index.tsx
...pages/mallManage/courseManage/comp/addEditModal/index.tsx
+1
-0
index.tsx
src/pages/mallManage/mallGoods/goodsList/index.tsx
+1
-1
index.tsx
src/pages/mallManage/rentGoods/rentList/index.tsx
+2
-2
index.tsx
src/pages/orderManage/serviceOrder/index.tsx
+8
-9
router.tsx
src/router/router.tsx
+23
-23
vite.config.ts
vite.config.ts
+1
-0
没有找到文件。
Dockerfile
浏览文件 @
191d0ffc
...
...
@@ -11,6 +11,7 @@ RUN npm run build
# nginx
FROM
nginx:alpine as production
VOLUME
["/var/log/nginx/"]
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
ENV
NODE_ENV production
# Set working directory to nginx asset directory
COPY
--from=builder /app/dist /usr/share/nginx/html
...
...
kustomization/base/deployment.yaml
浏览文件 @
191d0ffc
...
...
@@ -4,7 +4,7 @@ metadata:
name
:
admin-deployment
namespace
:
default
spec
:
# minReadySeconds: 120
minReadySeconds
:
5
revisionHistoryLimit
:
2
replicas
:
1
selector
:
...
...
@@ -21,9 +21,6 @@ spec:
volumeMounts
:
-
name
:
log-of-nginx
mountPath
:
/var/log/nginx
-
name
:
localtime
mountPath
:
/etc/localtime
readOnly
:
true
resources
:
limits
:
memory
:
512Mi
...
...
@@ -34,6 +31,3 @@ spec:
-
name
:
log-of-nginx
hostPath
:
path
:
/var/log/nginx
-
name
:
localtime
hostPath
:
path
:
/etc/localtime
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
191d0ffc
...
...
@@ -14,4 +14,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag
:
9802f6a9d578255792107915a86e29239fe30fd1
newTag
:
465e507b3079097b231424c6de372ba1ba672b14
src/api/interface/commonType.ts
浏览文件 @
191d0ffc
...
...
@@ -15,3 +15,5 @@ export type BackEndLoginType = InterFunction<
>
;
// 上传图片
export
type
uploadOssType
=
InterFunction
<
any
,
{
filePath
:
string
}
>
;
// 断电上传
export
type
uploadOssBPType
=
InterFunction
<
any
,
any
>
;
src/api/interface/orderManageType.ts
浏览文件 @
191d0ffc
...
...
@@ -411,12 +411,13 @@ export type serviceOrderType = InterItemFunction<
orderName
:
string
;
orderNo
:
string
;
orderStatus
:
number
;
images
:
string
[]
;
coverPlan
:
string
;
orderAmt
:
number
;
phoneNum
:
string
;
uid
:
string
;
createdTime
:
string
;
userName
:
string
;
nickName
:
string
;
}[]
>
;
// 服务-订单字典
...
...
src/api/interface/produceManageType.ts
浏览文件 @
191d0ffc
...
...
@@ -89,6 +89,7 @@ export type ProductSpecListType = InterItemFunction<
specName
:
string
;
versionDesc
:
string
;
productSkuId
:
number
;
priceList
:
any
;
}[]
>
;
//产品-规格-新增
...
...
src/api/modules/common.ts
浏览文件 @
191d0ffc
import
axios
from
'../request'
;
import
{
BackEndLoginType
,
uploadOssType
}
from
'~/api/interface/commonType'
;
import
{
BackEndLoginType
,
uploadOss
BPType
,
uploadOss
Type
}
from
'~/api/interface/commonType'
;
export
class
CommonAPI
{
// 用户登录
...
...
@@ -8,4 +8,7 @@ export class CommonAPI {
// 上传图片
static
uploadOss
:
uploadOssType
=
(
data
)
=>
axios
.
post
(
'/pms/upload/oss'
,
data
);
// 断点上传
static
uploadOssBP
:
uploadOssBPType
=
(
data
)
=>
axios
.
post
(
'/pms/upload/breakpoint'
,
data
);
}
src/components/goods/commonAddOrEdit/addOrEditSkuModal/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -175,16 +175,16 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
getProductSpecList
(
id
);
};
// // 选项来源选中
//
const handleSourceSelect = (id: number | string) => {
//
const values: any[] = skuForm.getFieldValue('specIds');
// const obj = optionSource.find((v: sourceEntity
) => v.id === id);
//
if (!obj?.priceList) {
//
message.warning('所选规格来源未配置好价格,请配置好SKU价格后重新选择!');
//
const index: number = values.findIndex((i: number) => i === id);
//
values.splice(index, 1);
//
}
//
skuForm.setFieldValue('specIds', values);
//
};
const
handleSourceSelect
=
(
id
:
number
|
string
)
=>
{
const
values
:
any
[]
=
skuForm
.
getFieldValue
(
'specIds'
);
const
obj
=
productSpecList
.
find
((
v
)
=>
v
.
id
===
id
);
if
(
!
obj
?.
priceList
)
{
message
.
warning
(
'所选规格来源未配置好价格,请配置好SKU价格后重新选择!'
);
const
index
:
number
=
values
.
findIndex
((
i
:
number
)
=>
i
===
id
);
values
.
splice
(
index
,
1
);
}
skuForm
.
setFieldValue
(
'specIds'
,
values
);
};
// // 规格来源切换
const
skuSourceRadioChange
=
(
e
:
RadioChangeEvent
)
=>
{
setIsCustomProd
(
e
.
target
.
value
===
1
);
...
...
@@ -226,8 +226,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
setProductSpecList
(
result
.
list
||
[]);
if
(
result
.
list
)
{
const
ids
:
number
[]
=
result
.
list
.
reduce
((
pre
:
number
[],
cur
)
=>
{
// return cur.priceList ? [...pre, cur.id] : pre;
return
[...
pre
,
cur
.
id
];
return
cur
.
priceList
||
goodsType
===
1
?
[...
pre
,
cur
.
id
]
:
pre
;
},
[]);
skuForm
.
setFieldValue
(
'specIds'
,
ids
);
}
...
...
@@ -597,7 +596,7 @@ const AddOrEditSkuModal: React.FC<ModalProps & selfProps> = ({
placeholder=
'请选择选项来源'
allowClear
mode=
'multiple'
//
onSelect=
{
handleSourceSelect
}
onSelect=
{
handleSourceSelect
}
>
{
productSpecList
.
map
((
item
:
any
)
=>
(
<
Select
.
Option
value=
{
item
.
id
}
key=
{
item
.
id
}
disabled=
{
item
.
disabled
}
>
...
...
src/components/uploader/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -77,10 +77,12 @@ export const Uploader: React.FC<PropsType> = (props) => {
// 上传到服务器
const
formData
=
new
FormData
();
formData
.
append
(
'uploadFile'
,
res
.
file
);
CommonAPI
.
uploadOss
(
formData
).
then
(
CommonAPI
.
uploadOss
BP
(
formData
).
then
(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
(
val
:
{
result
:
{
filePath
:
string
}
})
=>
{
//(val: { result: { filePath: string } }) => {
({
result
})
=>
{
console
.
log
(
result
);
setFileList
([
...
fileList
,
{
...
...
@@ -89,7 +91,8 @@ export const Uploader: React.FC<PropsType> = (props) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
name
:
res
.
file
.
name
,
url
:
val
.
result
.
filePath
,
// url: val.result.filePath,
url
:
result
,
},
]);
onChange
?.([
...
...
@@ -100,7 +103,8 @@ export const Uploader: React.FC<PropsType> = (props) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
name
:
res
.
file
.
name
,
url
:
val
.
result
.
filePath
,
// url: val.result.filePath,
url
:
result
,
},
]);
},
...
...
src/pages/mallManage/courseManage/comp/addEditModal/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -159,6 +159,7 @@ const AddEditModal: React.FC<propType> = (props) => {
fileUpload
fileLength=
{
1
}
fileSize=
{
10
}
fileType=
{
[
'image/png'
,
'image/jpeg'
,
'image/jpg'
,
'image/gif'
,
'image/bmp'
]
}
onChange=
{
(
e
)
=>
form
.
setFieldValue
(
'surfaceUrl'
,
e
[
0
].
url
)
}
defaultFileList=
{
data
?.
surfaceUrl
?
[{
url
:
data
?.
surfaceUrl
}]
:
[]
}
>
...
...
src/pages/mallManage/mallGoods/goodsList/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -170,7 +170,7 @@ const GoodsList = () => {
if
(
result
)
{
const
options
=
result
.
map
((
v
)
=>
({
id
:
v
.
id
,
name
:
v
.
directoryName
}));
searchColumns
[
1
].
options
=
options
;
setSearchColumns
(
searchColumns
);
setSearchColumns
(
[...
searchColumns
]
);
}
});
};
...
...
src/pages/mallManage/rentGoods/rentList/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -165,11 +165,11 @@ const RentList = () => {
};
//获取目录列表
const
getDirectoryList
=
()
=>
{
CategoryManageAPI
.
getDirectoryListClone
({
type
:
4
}).
then
(({
result
})
=>
{
CategoryManageAPI
.
getDirectoryListClone
({
type
:
2
}).
then
(({
result
})
=>
{
if
(
result
)
{
const
options
=
result
.
map
((
v
)
=>
({
id
:
v
.
id
,
name
:
v
.
directoryName
}));
searchColumns
[
1
].
options
=
options
;
setSearchColumns
(
searchColumns
);
setSearchColumns
(
[...
searchColumns
]
);
}
});
};
...
...
src/pages/orderManage/serviceOrder/index.tsx
浏览文件 @
191d0ffc
...
...
@@ -2,8 +2,7 @@ import { useEffect, useState } from 'react';
import
SearchBox
from
'~/components/search-box'
;
import
{
Button
,
Image
,
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
qs
from
'query-string'
;
// import { useNavigate } from 'react-router-dom';
import
{
OrderManageAPI
}
from
'~/api'
;
import
{
InterDataType
,
InterReqType
,
PaginationProps
}
from
'~/api/interface'
;
import
{
serviceOrderStatusType
,
serviceOrderType
}
from
'~/api/interface/orderManageType'
;
...
...
@@ -27,7 +26,7 @@ const statusCodeButtonList = [
function
ServiceOrderView
()
{
// 路由钩子
const
navigate
=
useNavigate
();
//
const navigate = useNavigate();
// 当前选择的是第几个按钮
const
[
statusCodeButtonIndex
,
setStatusCodeButtonIndex
]
=
useState
<
number
>
(
0
);
// 表格分页配置
...
...
@@ -49,7 +48,7 @@ function ServiceOrderView() {
width
:
250
,
render
:
(
_text
,
record
)
=>
(
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
{
/*<Image src={record.images[0]} style={{ width: 48, height: 48 }} />*/
}
<
Image
src=
{
record
.
coverPlan
}
style=
{
{
width
:
48
,
height
:
48
}
}
/>
<
div
style=
{
{
marginLeft
:
10
,
textAlign
:
'left'
,
lineHeight
:
'16px'
}
}
>
<
div
style=
{
{
color
:
'#1677ff'
}
}
>
{
record
.
orderName
}
</
div
>
<
div
>
订单编号:
{
record
.
orderNo
}
</
div
>
...
...
@@ -72,12 +71,12 @@ function ServiceOrderView() {
{
title
:
'买家'
,
align
:
'center'
,
width
:
'1
3
0px'
,
width
:
'1
5
0px'
,
render
:
(
_text
,
record
)
=>
(
<>
<
div
>
{
record
.
uid
}
</
div
>
<
div
>
{
record
.
userName
}
(
{
record
.
phoneNum
}
)
{
record
.
userName
||
record
.
nickName
}
(
{
record
.
phoneNum
}
)
</
div
>
</>
),
...
...
@@ -143,9 +142,9 @@ function ServiceOrderView() {
});
};
// 跳转订单详情
const
handleDetail
=
(
record
:
TableType
[
0
])
=>
{
navigate
(
`/orderManage/serviceOrder/detail?
${
qs
.
stringify
({
id
:
record
.
id
})}
`
);
};
//
const handleDetail = (record: TableType[0]) => {
//
navigate(`/orderManage/serviceOrder/detail?${qs.stringify({ id: record.id })}`);
//
};
//服务订单列表
const
getServiceOrderList
=
(
query
?:
serviceOrderTypeParameters
)
=>
{
OrderManageAPI
.
getServiceOrderList
({
...
...
src/router/router.tsx
浏览文件 @
191d0ffc
...
...
@@ -70,10 +70,10 @@ const ProduceDetailView = React.lazy(
()
=>
import
(
'~/pages/mallManage/produceManage/produceDetail'
),
);
//产品详情
const
MakeListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/makeManage/makeList'
));
const
IndustryListView
=
React
.
lazy
(()
=>
import
(
'~/pages/mallManage/industryManage/industryList'
));
//行业列表
const
IndustryDetailView
=
React
.
lazy
(
()
=>
import
(
'~/pages/mallManage/industryManage/industryDetail'
),
);
//行业详情
//
const IndustryListView = React.lazy(() => import('~/pages/mallManage/industryManage/industryList')); //行业列表
//
const IndustryDetailView = React.lazy(
//
() => import('~/pages/mallManage/industryManage/industryDetail'),
//
); //行业详情
// 订单
const
ProductOrderView
=
React
.
lazy
(()
=>
import
(
'src/pages/orderManage/productOrder'
));
//销售订单
...
...
@@ -371,25 +371,25 @@ export const routerList: Array<RouteObjectType> = [
title
:
'品牌管理'
,
},
},
{
path
:
'/mallManage/industryList'
,
element
:
withLoadingComponent
(<
IndustryListView
/>),
meta
:
{
id
:
10180
,
icon
:
<
SmileOutlined
/>,
title
:
'行业方案'
,
},
},
{
path
:
'/mallManage/industryDetail'
,
element
:
withLoadingComponent
(<
IndustryDetailView
/>),
meta
:
{
id
:
10190
,
icon
:
<
SmileOutlined
/>,
title
:
'行业详情'
,
hidden
:
true
,
},
},
//
{
//
path: '/mallManage/industryList',
//
element: withLoadingComponent(<IndustryListView />),
//
meta: {
//
id: 10180,
//
icon: <SmileOutlined />,
//
title: '行业方案',
//
},
//
},
//
{
//
path: '/mallManage/industryDetail',
//
element: withLoadingComponent(<IndustryDetailView />),
//
meta: {
//
id: 10190,
//
icon: <SmileOutlined />,
//
title: '行业详情',
//
hidden: true,
//
},
//
},
],
},
{
...
...
vite.config.ts
浏览文件 @
191d0ffc
...
...
@@ -11,6 +11,7 @@ export default defineConfig({
host
:
'0.0.0.0'
,
proxy
:
{
'/api'
:
{
// target: 'http://192.168.3.111:8099', // 后端女pms
// target: 'http://192.168.3.111:8077', // 后端女oms
// target: 'http://192.168.3.17:8099', // 狗旺
target
:
'https://test.iuav.shop'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论